Run this model with HF Jobs
Run michaelsinanta/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/michaelsinanta/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/michaelsinanta/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 michaelsinanta/image_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use michaelsinanta/image_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="michaelsinanta/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("michaelsinanta/image_classification") model = AutoModelForImageClassification.from_pretrained("michaelsinanta/image_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
4fb722d
1
Parent(s): eff6956
Training in progress, epoch 1
Browse filesFiles changed (4)
- config.jsonAdded+44
- preprocessor_config.jsonAdded+22
- pytorch_model.binAdded+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.33.2"}12345678910111213141516171819202122{ "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:1f26d4b4e95aebb0d4d7fb8488ffc4eaf1fe98b9fdcddb623823742eb093214asize 343284397123version https://git-lfs.github.com/spec/v1oid sha256:021a7415d98480a76d0552f0ad60ea2b10e1e4740ad3b39ce34e588a7e81bdd9size 4027config.jsonAdded+44
preprocessor_config.jsonAdded+22
pytorch_model.binAdded+3
training_args.binAdded+3