Instructions to use spicecloud/spice-cnn-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use spicecloud/spice-cnn-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="spicecloud/spice-cnn-base", trust_remote_code=True) pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoModelForImageClassification model = AutoModelForImageClassification.from_pretrained("spicecloud/spice-cnn-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "auto_map": { | |
| "AutoImageProcessor": "image_processing_spice_cnn.SpiceCNNImageProcessor" | |
| }, | |
| "do_normalize": false, | |
| "do_rescale": false, | |
| "do_resize": true, | |
| "image_mean": 0.5, | |
| "image_processor_type": "SpiceCNNImageProcessor", | |
| "image_std": 0.5, | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "height": 28, | |
| "width": 28 | |
| }, | |
| "trust_remote_code": true | |
| } | |