Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Run this model with HF Jobs
Run ivandrian11/fruit-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/ivandrian11/fruit-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/ivandrian11/fruit-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 ivandrian11/fruit-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ivandrian11/fruit-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ivandrian11/fruit-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("ivandrian11/fruit-classifier") model = AutoModelForImageClassification.from_pretrained("ivandrian11/fruit-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 500
Browse filesFiles changed (7)
- config.jsonAdded+88
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+22
- runs/Mar28_15-04-21_1d08d0d5db4b/events.out.tfevents.1711638264.1d08d0d5db4b.548.12Added+3
- runs/Mar28_15-05-47_1d08d0d5db4b/events.out.tfevents.1711638350.1d08d0d5db4b.548.13Added+3
- runs/Mar28_15-07-42_1d08d0d5db4b/events.out.tfevents.1711638464.1d08d0d5db4b.548.14Added+3
- training_args.binAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ "_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": "acerolas", "1": "apples", "10": "figs", "11": "grapefruits", "12": "grapes", "13": "guava", "14": "kiwifruit", "15": "lemons", "16": "limes", "17": "mangos", "18": "olives", "19": "oranges", "2": "apricots", "20": "passionfruit", "21": "peaches", "22": "pears", "23": "pineapples", "24": "plums", "25": "pomegranates", "26": "raspberries", "27": "strawberries", "28": "tomatoes", "29": "watermelons", "3": "avocados", "4": "bananas", "5": "blackberries", "6": "blueberries", "7": "cantaloupes", "8": "cherries", "9": "coconuts" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "acerolas": "0", "apples": "1", "apricots": "2", "avocados": "3", "bananas": "4", "blackberries": "5", "blueberries": "6", "cantaloupes": "7", "cherries": "8", "coconuts": "9", "figs": "10", "grapefruits": "11", "grapes": "12", "guava": "13", "kiwifruit": "14", "lemons": "15", "limes": "16", "mangos": "17", "olives": "18", "oranges": "19", "passionfruit": "20", "peaches": "21", "pears": "22", "pineapples": "23", "plums": "24", "pomegranates": "25", "raspberries": "26", "strawberries": "27", "tomatoes": "28", "watermelons": "29" }, "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.38.2"}123version https://git-lfs.github.com/spec/v1oid sha256:8494f2a64f8c87587aa27a938d704ab27dee07369a5cf1f750c49004dcece457size 34331010412345678910111213141516171819202122{ "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "ViTImageProcessor", "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:346853500e1a0142d75ae51569a8d42c68dffbdd1868afab90ab7c4b880b8b9dsize 6319123version https://git-lfs.github.com/spec/v1oid sha256:69b5081d9eec2b829083da3cb1f6a89c4457fe6a15dd80594fac66b9134873fbsize 6367123version https://git-lfs.github.com/spec/v1oid sha256:044b43009ed630f0605c3be2bed9f0084bcdc55df869bbf4fda3b651cb8b8204size 8503123version https://git-lfs.github.com/spec/v1oid sha256:5de9dbf143143b1bc94e16a9b1434933b034516e390136e34daa69146112fe31size 4856config.jsonAdded+88
model.safetensorsAdded+3
preprocessor_config.jsonAdded+22
runs/Mar28_15-04-21_1d08d0d5db4b/events.out.tfevents.1711638264.1d08d0d5db4b.548.12Added+3
runs/Mar28_15-05-47_1d08d0d5db4b/events.out.tfevents.1711638350.1d08d0d5db4b.548.13Added+3
runs/Mar28_15-07-42_1d08d0d5db4b/events.out.tfevents.1711638464.1d08d0d5db4b.548.14Added+3
training_args.binAdded+3