Image Classification
Transformers
TensorBoard
Safetensors
PyTorch
vit
huggingpics
Eval Results (legacy)
Run this model with HF Jobs
Run NonoBru/deficiency-classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/NonoBru/deficiency-classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/NonoBru/deficiency-classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use NonoBru/deficiency-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NonoBru/deficiency-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="NonoBru/deficiency-classifier") 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("NonoBru/deficiency-classifier") model = AutoModelForImageClassification.from_pretrained("NonoBru/deficiency-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
commit files to HF hub
Browse filesFiles changed (5)
- README.mdAdded+27
- config.jsonAdded+52
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+22
- runs/events.out.tfevents.1702685782.259ebc9f6552.1085.0Added+3
123456789101112131415161718192021222324252627
---tags:- image-classification- pytorch- huggingpicsmetrics:- accuracy
model-index:- name: deficiency-classifier results: - task: name: Image Classification type: image-classification metrics: - name: Accuracy type: accuracy value: 0.3888888955116272---
# deficiency-classifier
Autogenerated by a tweeked version HuggingPics🤗🖼️
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152{ "_name_or_path": "google/vit-base-patch16-224-in21k", "architectures": [ "ViTForImageClassification" ], "attention_probs_dropout_prob": 0.0, "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "Calcium Deficiency", "1": "Copper Deficiency", "10": "Underwatering", "11": "Zinc Deficiency", "2": "Iron Deficiency (Chlorosis)", "3": "Magnesium Deficiency", "4": "Manganese Deficiency", "5": "Nitrogen Deficiency", "6": "Overwatering", "7": "Phosphorus Deficiency", "8": "Potassium Deficiency", "9": "Sulfur Deficiency" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "Calcium Deficiency": "0", "Copper Deficiency": "1", "Iron Deficiency (Chlorosis)": "2", "Magnesium Deficiency": "3", "Manganese Deficiency": "4", "Nitrogen Deficiency": "5", "Overwatering": "6", "Phosphorus Deficiency": "7", "Potassium Deficiency": "8", "Sulfur Deficiency": "9", "Underwatering": "10", "Zinc Deficiency": "11" }, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 12, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 16, "problem_type": "single_label_classification", "qkv_bias": true, "torch_dtype": "float32", "transformers_version": "4.35.2"}123version https://git-lfs.github.com/spec/v1oid sha256:f2ac54dbe0a5dbe4fb42829ca3f72750e8f849f20693dc2ce01a2f90c426b6a2size 34325473612345678910111213141516171819202122{ "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "ViTFeatureExtractor", "image_std": [ 0.5, 0.5, 0.5 ], "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "height": 224, "width": 224 }}123version https://git-lfs.github.com/spec/v1oid sha256:06d5c0aaf1dcfa395dab4db9d37e46bdaf983ec7e5e48605d43096384033f6edsize 2332README.mdAdded+27
config.jsonAdded+52
model.safetensorsAdded+3
preprocessor_config.jsonAdded+22
runs/events.out.tfevents.1702685782.259ebc9f6552.1085.0Added+3