Skip to content

About

Zero-shot binary image classifier. Type in the name of an object and AI predicts whether your uploaded photo matches it.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Thing/Not Thing

This is a zero-shot binary image classifier. Type in the name of an object and AI predicts whether your uploaded photo matches it.

How it Works

This project uses OpenCLIP, an open-source implementation of OpenAI's CLIP.

Examples

Hot Dog Detected

Hot Dog Not Detected

Try It Yourself!

This project is available as a web demo here. But it will be slower than when the project is run locally on a GPU.

You can expand "Additional Inputs" to allow adjusting the cosine similarity threshold below which your photo is deemed Not <object>.

Running Locally on a GPU

Tested on Debian.

Requirements

Startup

Create a .env file which points to the path where you downloaded the OpenCLIP model. Then run:

docker compose build
docker compose run torch

Finally, go to http://localhost:7860 in your browser.

About

Zero-shot binary image classifier. Type in the name of an object and AI predicts whether your uploaded photo matches it.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages