Instructions to use AnthoneoJ/ms6-train with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnthoneoJ/ms6-train with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="AnthoneoJ/ms6-train") 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("AnthoneoJ/ms6-train") model = AutoModelForImageClassification.from_pretrained("AnthoneoJ/ms6-train", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from AnthoneoJ/ms6-train: direct link, hf CLI and curl.
- Browser
- Download file 960 Bytes
-
https://huggingface.co/AnthoneoJ/ms6-train/resolve/main/config.json
- Command line
-
hf download hf://AnthoneoJ/ms6-train/config.json
-
curl -L -o config.json https://huggingface.co/AnthoneoJ/ms6-train/resolve/main/config.json
960 Bytes
| { | |
| "_name_or_path": "facebook/convnextv2-tiny-1k-224", | |
| "architectures": [ | |
| "ConvNextV2ForImageClassification" | |
| ], | |
| "depths": [ | |
| 3, | |
| 3, | |
| 9, | |
| 3 | |
| ], | |
| "drop_path_rate": 0.0, | |
| "hidden_act": "gelu", | |
| "hidden_sizes": [ | |
| 96, | |
| 192, | |
| 384, | |
| 768 | |
| ], | |
| "id2label": { | |
| "0": "food", | |
| "1": "guru", | |
| "2": "inside", | |
| "3": "menu", | |
| "4": "outside", | |
| "5": "people" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "food": 0, | |
| "guru": 1, | |
| "inside": 2, | |
| "menu": 3, | |
| "outside": 4, | |
| "people": 5 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "convnextv2", | |
| "num_channels": 3, | |
| "num_stages": 4, | |
| "out_features": [ | |
| "stage4" | |
| ], | |
| "out_indices": [ | |
| 4 | |
| ], | |
| "patch_size": 4, | |
| "problem_type": "single_label_classification", | |
| "stage_names": [ | |
| "stem", | |
| "stage1", | |
| "stage2", | |
| "stage3", | |
| "stage4" | |
| ], | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.45.1" | |
| } | |