Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Run this model with HF Jobs
Run itsTomLie/image_classification 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/itsTomLie/image_classification. 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/itsTomLie/image_classification 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 itsTomLie/image_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use itsTomLie/image_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="itsTomLie/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("itsTomLie/image_classification") model = AutoModelForImageClassification.from_pretrained("itsTomLie/image_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse filesFiles changed (7)
- config.jsonAdded+44
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+22
- runs/Sep06_02-52-28_f406ed6f6eb3/events.out.tfevents.1725591159.f406ed6f6eb3.1155.0Added+3
- runs/Sep06_02-52-28_f406ed6f6eb3/events.out.tfevents.1725595578.f406ed6f6eb3.1155.1Added+3
- runs/Sep06_04-27-30_f406ed6f6eb3/events.out.tfevents.1725596880.f406ed6f6eb3.1155.2Added+3
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ "_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": "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", "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.44.2"}123version https://git-lfs.github.com/spec/v1oid sha256:4f70f14a8ec5dc00fc6e6651ee649c2f8cff6af4c9108b8e586960329a526e58size 34324243212345678910111213141516171819202122{ "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:3b39ab8e9c34f26e40992183db041548576b59750d0204d200757777c093165fsize 7079123version https://git-lfs.github.com/spec/v1oid sha256:45acf098244d009472e5d7be32558842ecb469c8f2b9df7cb395b34a3423553dsize 405123version https://git-lfs.github.com/spec/v1oid sha256:960710d5e20036fd892816dd26e97d9dca83840499b2d24bb36200ca7c36e0f1size 5682123version https://git-lfs.github.com/spec/v1oid sha256:085c02d013c7f4d4ce8572b3580332120cf64b75de9e2322fb67d32ab7afbdedsize 5240config.jsonAdded+44
model.safetensorsAdded+3
preprocessor_config.jsonAdded+22
runs/Sep06_02-52-28_f406ed6f6eb3/events.out.tfevents.1725591159.f406ed6f6eb3.1155.0Added+3
runs/Sep06_02-52-28_f406ed6f6eb3/events.out.tfevents.1725595578.f406ed6f6eb3.1155.1Added+3
runs/Sep06_04-27-30_f406ed6f6eb3/events.out.tfevents.1725596880.f406ed6f6eb3.1155.2Added+3
training_args.binAdded+3