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+16-6
- pytorch_model.bin+2-2
- training_args.bin+1-1
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",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",
123version https://git-lfs.github.com/spec/v1oid sha256:4c1385fec83372303b11d1dd20fad017e5b722bc9a6c5f98fcdb7fb2703d546dsize 343271789123version https://git-lfs.github.com/spec/v1oid sha256:e91bf135fde2cb2d19a6ef00760c95ce2665b8663c731fcc606adc5f0db23bdbsize 343287149
123version https://git-lfs.github.com/spec/v1oid sha256:8daa918d2d0f18a6a995c9a9c079fe0cb37425443d902e236c7a89fb554c615dsize 4091123version https://git-lfs.github.com/spec/v1oid sha256:97086afc0b482da27cec46cc767f6ffeeba933873560a254262c5b6b9ff10f3esize 4091
config.json+16-6
pytorch_model.bin+2-2
training_args.bin+1-1