Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.38 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.38 KB

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.