Instructions to use Metal079/SonicCharacterClassifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Metal079/SonicCharacterClassifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Metal079/SonicCharacterClassifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("Metal079/SonicCharacterClassifier") model = AutoModelForImageClassification.from_pretrained("Metal079/SonicCharacterClassifier") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "facebook/convnext-base-384-22k-1k", | |
| "architectures": [ | |
| "ConvNextForImageClassification" | |
| ], | |
| "depths": [ | |
| 3, | |
| 3, | |
| 27, | |
| 3 | |
| ], | |
| "drop_path_rate": 0.0, | |
| "hidden_act": "gelu", | |
| "hidden_sizes": [ | |
| 128, | |
| 256, | |
| 512, | |
| 1024 | |
| ], | |
| "id2label": { | |
| "0": "Tails the fox", | |
| "1": "Amy rose", | |
| "10": "Shadow the hedgehog", | |
| "11": "Sally Acorn", | |
| "12": "mobian", | |
| "13": "Tangle the lemur", | |
| "14": "Big the cat", | |
| "2": "Rouge the bat", | |
| "3": "Whisper the wolf", | |
| "4": "Knuckles the echidna", | |
| "5": "Blaze the cat", | |
| "6": "Silver the hedgehog", | |
| "7": "Cream the rabbit", | |
| "8": "Vanilla the rabbit", | |
| "9": "Sonic the hedgehog" | |
| }, | |
| "image_size": 384, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "Amy rose": "1", | |
| "Big the cat": "14", | |
| "Blaze the cat": "5", | |
| "Cream the rabbit": "7", | |
| "Knuckles the echidna": "4", | |
| "Rouge the bat": "2", | |
| "Sally Acorn": "11", | |
| "Shadow the hedgehog": "10", | |
| "Silver the hedgehog": "6", | |
| "Sonic the hedgehog": "9", | |
| "Tails the fox": "0", | |
| "Tangle the lemur": "13", | |
| "Vanilla the rabbit": "8", | |
| "Whisper the wolf": "3", | |
| "mobian": "12" | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "layer_scale_init_value": 1e-06, | |
| "model_type": "convnext", | |
| "num_channels": 3, | |
| "num_stages": 4, | |
| "patch_size": 4, | |
| "problem_type": "multi_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.25.1" | |
| } | |