Instructions to use dyaminda/image_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dyaminda/image_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="dyaminda/image_classification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("dyaminda/image_classification") model = AutoModelForImageClassification.from_pretrained("dyaminda/image_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse filesFiles changed (3)
- config.json+6-16
- pytorch_model.bin+2-2
- training_args.bin+2-2
8 unmodified lines910111213141516171819202122232425262728293031323334358 unmodified lines"hidden_dropout_prob": 0.0,"hidden_size": 768,"id2label": {"0": "anger","1": "contempt","2": "disgust","3": "fear","4": "happy","5": "neutral","6": "sad","7": "surprise"},"image_size": 224,"initializer_range": 0.02,"intermediate_size": 3072,"label2id": {"anger": "0","contempt": "1","disgust": "2","fear": "3","happy": "4","neutral": "5","sad": "6","surprise": "7"},"layer_norm_eps": 1e-12,"model_type": "vit",8 unmodified lines9101112131415161718192021222324258 unmodified lines"hidden_dropout_prob": 0.0,"hidden_size": 768,"id2label": {"0": "angular_leaf_spot","1": "bean_rust","2": "healthy"},"image_size": 224,"initializer_range": 0.02,"intermediate_size": 3072,"label2id": {"angular_leaf_spot": "0","bean_rust": "1","healthy": "2"},"layer_norm_eps": 1e-12,"model_type": "vit",
123version https://git-lfs.github.com/spec/v1oid sha256:e34474f8dd1a3e970d28d94ac765d2d39581f7cb7d41ac61e457caa38b787710size 343287149123version https://git-lfs.github.com/spec/v1oid sha256:52c3cf6c5e19da945f657d42b021ab1265a0f0769c602b0c9a0519ba2044d258size 343271789
123version https://git-lfs.github.com/spec/v1oid sha256:043d8795fc1313c88eb85ed0cdfc7fabaf41418c105f77f27632509e94f3e7bdsize 4027123version https://git-lfs.github.com/spec/v1oid sha256:8daa918d2d0f18a6a995c9a9c079fe0cb37425443d902e236c7a89fb554c615dsize 4091
config.json+6-16
pytorch_model.bin+2-2
training_args.bin+2-2