Image Classification
Transformers
TensorBoard
Safetensors
vit
YJM
3_class
ViT
Generated from Trainer
Run this model with HF Jobs
Run j200chi/ViT_beans 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/j200chi/ViT_beans. 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/j200chi/ViT_beans 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 j200chi/ViT_beans with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use j200chi/ViT_beans with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="j200chi/ViT_beans") 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("j200chi/ViT_beans") model = AutoModelForImageClassification.from_pretrained("j200chi/ViT_beans", device_map="auto") - Notebooks
- Google Colab
- Kaggle
j200chi
Browse filesFiles changed (8)
- README.mdAdded+63
- config.jsonAdded+35
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+23
- runs/Apr10_00-16-57_bce13e41ccbc/events.out.tfevents.1744244222.bce13e41ccbc.388.0Added+3
- runs/Apr10_00-47-15_bce13e41ccbc/events.out.tfevents.1744246036.bce13e41ccbc.388.1Added+3
- runs/Apr10_00-47-15_bce13e41ccbc/events.out.tfevents.1744246210.bce13e41ccbc.388.2Added+3
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263---library_name: transformerslicense: apache-2.0base_model: google/vit-base-patch16-224-in21ktags:- YJM- 3_class- ViT- generated_from_trainermodel-index:- name: ViT_beans results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# ViT_beans
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the beans dataset.It achieves the following results on the evaluation set:- Loss: 0.7828
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 2e-05- train_batch_size: 64- eval_batch_size: 64- seed: 42- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 3
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 1.0 | 17 | 0.7828 || No log | 2.0 | 34 | 0.6187 || No log | 3.0 | 51 | 0.5645 |
### Framework versions
- Transformers 4.50.3- Pytorch 2.6.0+cu124- Datasets 3.5.0- Tokenizers 0.21.11234567891011121314151617181920212223242526272829303132333435{ "architectures": [ "ViTForImageClassification" ], "attention_probs_dropout_prob": 0.0, "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_2": 2 }, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 12, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 16, "pooler_act": "tanh", "pooler_output_size": 768, "problem_type": "single_label_classification", "qkv_bias": true, "torch_dtype": "float32", "transformers_version": "4.50.3"}123version https://git-lfs.github.com/spec/v1oid sha256:5f9be54df245f3dc0aeae426547b72e8ea6fe0c71c05a5102a7907666fc2eaa9size 3432270521234567891011121314151617181920212223{ "do_convert_rgb": null, "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:b7a87735e4b00b10e34587e09427306e9f5dd72d9e3bfc05a1fbcd2209158d34size 6253123version https://git-lfs.github.com/spec/v1oid sha256:4da7ce88189087fc1d31c3ec25dec45811f32cadba532f8a142c6840e4e3178esize 6253123version https://git-lfs.github.com/spec/v1oid sha256:73d5d71b276ea5ac439d7702ed6bfb1c7ad94fb00ee40a16f5e61a3698ca0385size 354123version https://git-lfs.github.com/spec/v1oid sha256:b925051c66fa196ab7b0b7749c2f84ab84b72840648e427e24711d2af6a9475csize 5368README.mdAdded+63
config.jsonAdded+35
model.safetensorsAdded+3
preprocessor_config.jsonAdded+23
runs/Apr10_00-16-57_bce13e41ccbc/events.out.tfevents.1744244222.bce13e41ccbc.388.0Added+3
runs/Apr10_00-47-15_bce13e41ccbc/events.out.tfevents.1744246036.bce13e41ccbc.388.1Added+3
runs/Apr10_00-47-15_bce13e41ccbc/events.out.tfevents.1744246210.bce13e41ccbc.388.2Added+3
training_args.binAdded+3