Instructions to use Anwarkh1/Skin_Cancer-Image_Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Anwarkh1/Skin_Cancer-Image_Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Anwarkh1/Skin_Cancer-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("Anwarkh1/Skin_Cancer-Image_Classification") model = AutoModelForImageClassification.from_pretrained("Anwarkh1/Skin_Cancer-Image_Classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload ViTForImageClassification
Browse filesFiles changed (2)
- config.json+18
- model.safetensors+1-1
7 unmodified lines89101112131415161718192021222324252627282930313233347 unmodified lines "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2", "3": "LABEL_3", "4": "LABEL_4", "5": "LABEL_5", "6": "LABEL_6" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_2": 2, "LABEL_3": 3, "LABEL_4": 4, "LABEL_5": 5, "LABEL_6": 6 }, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 12,1223version https://git-lfs.github.com/spec/v1oid sha256:1b33e65e9666f469be724b6c47059d9e16033acad4dfc5201159bdc5c2f13c3boid sha256:501d946d1111fd3577716788f21f0b02b228d2e0c4eae301cdfad47a9246bdffsize 343239356config.json+18
model.safetensors+1-1