Instructions to use prithivMLmods/Gym-Workout-Classifier-SigLIP2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Gym-Workout-Classifier-SigLIP2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="prithivMLmods/Gym-Workout-Classifier-SigLIP2") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForImageClassification processor = AutoProcessor.from_pretrained("prithivMLmods/Gym-Workout-Classifier-SigLIP2") model = AutoModelForImageClassification.from_pretrained("prithivMLmods/Gym-Workout-Classifier-SigLIP2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download checkpoint-909/config.json from prithivMLmods/Gym-Workout-Classifier-SigLIP2: direct link, hf CLI and curl.
- Browser
- Download file 1.63 kB
-
https://huggingface.co/prithivMLmods/Gym-Workout-Classifier-SigLIP2/resolve/main/checkpoint-909/config.json
- Command line
-
hf download hf://prithivMLmods/Gym-Workout-Classifier-SigLIP2/checkpoint-909/config.json
-
curl -L -o config.json https://huggingface.co/prithivMLmods/Gym-Workout-Classifier-SigLIP2/resolve/main/checkpoint-909/config.json
1.63 kB
| { | |
| "_name_or_path": "google/siglip2-base-patch16-224", | |
| "architectures": [ | |
| "SiglipForImageClassification" | |
| ], | |
| "id2label": { | |
| "0": "barbell biceps curl", | |
| "1": "bench press", | |
| "2": "chest fly machine", | |
| "3": "deadlift", | |
| "4": "decline bench press", | |
| "5": "hammer curl", | |
| "6": "hip thrust", | |
| "7": "incline bench press", | |
| "8": "lat pulldown", | |
| "9": "lateral raises", | |
| "10": "leg extension", | |
| "11": "leg raises", | |
| "12": "plank", | |
| "13": "pull up", | |
| "14": "push up", | |
| "15": "romanian deadlift", | |
| "16": "russian twist", | |
| "17": "shoulder press", | |
| "18": "squat", | |
| "19": "t bar row", | |
| "20": "tricep dips", | |
| "21": "tricep pushdown" | |
| }, | |
| "initializer_factor": 1.0, | |
| "label2id": { | |
| "barbell biceps curl": 0, | |
| "bench press": 1, | |
| "chest fly machine": 2, | |
| "deadlift": 3, | |
| "decline bench press": 4, | |
| "hammer curl": 5, | |
| "hip thrust": 6, | |
| "incline bench press": 7, | |
| "lat pulldown": 8, | |
| "lateral raises": 9, | |
| "leg extension": 10, | |
| "leg raises": 11, | |
| "plank": 12, | |
| "pull up": 13, | |
| "push up": 14, | |
| "romanian deadlift": 15, | |
| "russian twist": 16, | |
| "shoulder press": 17, | |
| "squat": 18, | |
| "t bar row": 19, | |
| "tricep dips": 20, | |
| "tricep pushdown": 21 | |
| }, | |
| "model_type": "siglip", | |
| "problem_type": "single_label_classification", | |
| "text_config": { | |
| "model_type": "siglip_text_model", | |
| "torch_dtype": "float32", | |
| "vocab_size": 256000 | |
| }, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.50.0.dev0", | |
| "vision_config": { | |
| "model_type": "siglip_vision_model", | |
| "torch_dtype": "float32" | |
| } | |
| } | |