In this guide, we'll show you how to run CLIP on Brev. As always, we've pre-configured the environment already so you won't have any config whatsoever :)
Hit this link to create a new Brev CLIP instance
Sign up for an account
It'll redirect you to an instance creation page pre-configured with the defaults you need..
At the bottom, add a payment method...we give you 30 minutes free but we just need to make sure people don't abuse our systems 🙂
Once your instance is created install Brev:
brew install brevdev/homebrew-brev/brev && brev login
Open your new CLIP Brev instance:
brev open clip --wait
This will open VSCode inside the CLIP repo.
Now, we're ready-to-go!! In your VSCode terminal, run the command below:
And boom! The model will classify the dog.jpeg file into either a "cat" or "dog". You can play around with the model by changing run-clip.py to load your own images and change the labels it classifies between on line 9.