Instructions to use iamhmh/autotrain-isic-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iamhmh/autotrain-isic-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="iamhmh/autotrain-isic-classification") 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("iamhmh/autotrain-isic-classification") model = AutoModelForImageClassification.from_pretrained("iamhmh/autotrain-isic-classification") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "facebook/convnext-base-224-22k-1k", | |
| "_num_labels": 8, | |
| "architectures": [ | |
| "ConvNextForImageClassification" | |
| ], | |
| "depths": [ | |
| 3, | |
| 3, | |
| 27, | |
| 3 | |
| ], | |
| "drop_path_rate": 0.0, | |
| "hidden_act": "gelu", | |
| "hidden_sizes": [ | |
| 128, | |
| 256, | |
| 512, | |
| 1024 | |
| ], | |
| "id2label": { | |
| "0": "Actinic keratosis", | |
| "1": "Basal cell carcinoma", | |
| "2": "Benign keratosis", | |
| "3": "Dermatofibroma", | |
| "4": "Melanocytic nevus", | |
| "5": "Melanoma", | |
| "6": "Squamous cell carcinoma", | |
| "7": "Vascular lesion" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "Actinic keratosis": 0, | |
| "Basal cell carcinoma": 1, | |
| "Benign keratosis": 2, | |
| "Dermatofibroma": 3, | |
| "Melanocytic nevus": 4, | |
| "Melanoma": 5, | |
| "Squamous cell carcinoma": 6, | |
| "Vascular lesion": 7 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "layer_scale_init_value": 1e-06, | |
| "model_type": "convnext", | |
| "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.48.0" | |
| } | |