Instructions to use joaodaniel/RS-M-CLIP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use joaodaniel/RS-M-CLIP with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:joaodaniel/RS-M-CLIP') tokenizer = open_clip.get_tokenizer('hf-hub:joaodaniel/RS-M-CLIP') - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -103,6 +103,8 @@ A cute cat 0.0%
|
|
| 103 |
|
| 104 |
#### Image Classification (in Spanish)
|
| 105 |
```python
|
|
|
|
|
|
|
| 106 |
from PIL import Image
|
| 107 |
image = preprocess(Image.open('figs/golf_course_004.jpg')).unsqueeze(0)
|
| 108 |
|
|
|
|
| 103 |
|
| 104 |
#### Image Classification (in Spanish)
|
| 105 |
```python
|
| 106 |
+
model = model.eval()
|
| 107 |
+
|
| 108 |
from PIL import Image
|
| 109 |
image = preprocess(Image.open('figs/golf_course_004.jpg')).unsqueeze(0)
|
| 110 |
|