Spaces:
Sleeping
Sleeping
Upload 4 files
Browse filesViT large fine-tuned on skin disease dataset
- best_model/config.json +74 -0
- best_model/model.safetensors +3 -0
- best_model/preprocessor_config.json +22 -0
- best_model/training_args.bin +3 -0
best_model/config.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "google/vit-large-patch16-224",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"ViTForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.0,
|
| 7 |
+
"encoder_stride": 16,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.0,
|
| 10 |
+
"hidden_size": 1024,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "Acne or Rosacea",
|
| 13 |
+
"1": "Actinic Keratosis Basal Cell Carcinoma and other Malignant Lesions",
|
| 14 |
+
"2": "Atopic Dermatitis",
|
| 15 |
+
"3": "Bullous Disease",
|
| 16 |
+
"4": "Cellulitis Impetigo and other Bacterial Infections",
|
| 17 |
+
"5": "Contact Dermatitis",
|
| 18 |
+
"6": "Eczema",
|
| 19 |
+
"7": "Exanthems and Drug Eruptions",
|
| 20 |
+
"8": "Hair Loss Photos Alopecia and other Hair Diseases",
|
| 21 |
+
"9": "Herpes HPV and other STDs",
|
| 22 |
+
"10": "Light Diseases and Disorders of Pigmentation",
|
| 23 |
+
"11": "Lupus and other Connective Tissue diseases",
|
| 24 |
+
"12": "Melanoma Skin Cancer Nevi and Moles",
|
| 25 |
+
"13": "Nail Fungus and other Nail Disease",
|
| 26 |
+
"14": "Psoriasis pictures Lichen Planus and related diseases",
|
| 27 |
+
"15": "Scabies Lyme Disease and other Infestations and Bites",
|
| 28 |
+
"16": "Seborrheic Keratoses and other Benign Tumors",
|
| 29 |
+
"17": "Systemic Disease",
|
| 30 |
+
"18": "Tinea Ringworm Candidiasis and other Fungal Infections",
|
| 31 |
+
"19": "Urticaria Hives",
|
| 32 |
+
"20": "Vascular Tumors",
|
| 33 |
+
"21": "Vasculitis",
|
| 34 |
+
"22": "Warts Molluscum and other Viral Infections"
|
| 35 |
+
},
|
| 36 |
+
"image_size": 224,
|
| 37 |
+
"initializer_range": 0.02,
|
| 38 |
+
"intermediate_size": 4096,
|
| 39 |
+
"label2id": {
|
| 40 |
+
"Acne or Rosacea": 0,
|
| 41 |
+
"Actinic Keratosis Basal Cell Carcinoma and other Malignant Lesions": 1,
|
| 42 |
+
"Atopic Dermatitis": 2,
|
| 43 |
+
"Bullous Disease": 3,
|
| 44 |
+
"Cellulitis Impetigo and other Bacterial Infections": 4,
|
| 45 |
+
"Contact Dermatitis": 5,
|
| 46 |
+
"Eczema": 6,
|
| 47 |
+
"Exanthems and Drug Eruptions": 7,
|
| 48 |
+
"Hair Loss Photos Alopecia and other Hair Diseases": 8,
|
| 49 |
+
"Herpes HPV and other STDs": 9,
|
| 50 |
+
"Light Diseases and Disorders of Pigmentation": 10,
|
| 51 |
+
"Lupus and other Connective Tissue diseases": 11,
|
| 52 |
+
"Melanoma Skin Cancer Nevi and Moles": 12,
|
| 53 |
+
"Nail Fungus and other Nail Disease": 13,
|
| 54 |
+
"Psoriasis pictures Lichen Planus and related diseases": 14,
|
| 55 |
+
"Scabies Lyme Disease and other Infestations and Bites": 15,
|
| 56 |
+
"Seborrheic Keratoses and other Benign Tumors": 16,
|
| 57 |
+
"Systemic Disease": 17,
|
| 58 |
+
"Tinea Ringworm Candidiasis and other Fungal Infections": 18,
|
| 59 |
+
"Urticaria Hives": 19,
|
| 60 |
+
"Vascular Tumors": 20,
|
| 61 |
+
"Vasculitis": 21,
|
| 62 |
+
"Warts Molluscum and other Viral Infections": 22
|
| 63 |
+
},
|
| 64 |
+
"layer_norm_eps": 1e-12,
|
| 65 |
+
"model_type": "vit",
|
| 66 |
+
"num_attention_heads": 16,
|
| 67 |
+
"num_channels": 3,
|
| 68 |
+
"num_hidden_layers": 24,
|
| 69 |
+
"patch_size": 16,
|
| 70 |
+
"problem_type": "single_label_classification",
|
| 71 |
+
"qkv_bias": true,
|
| 72 |
+
"torch_dtype": "float32",
|
| 73 |
+
"transformers_version": "4.42.3"
|
| 74 |
+
}
|
best_model/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79216b712ae8563ec58a7ccab010aaebfc1ce3aabdb4bee0eba67f8be16ac037
|
| 3 |
+
size 1213347372
|
best_model/preprocessor_config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_normalize": true,
|
| 3 |
+
"do_rescale": true,
|
| 4 |
+
"do_resize": true,
|
| 5 |
+
"image_mean": [
|
| 6 |
+
0.5,
|
| 7 |
+
0.5,
|
| 8 |
+
0.5
|
| 9 |
+
],
|
| 10 |
+
"image_processor_type": "ViTImageProcessor",
|
| 11 |
+
"image_std": [
|
| 12 |
+
0.5,
|
| 13 |
+
0.5,
|
| 14 |
+
0.5
|
| 15 |
+
],
|
| 16 |
+
"resample": 2,
|
| 17 |
+
"rescale_factor": 0.00392156862745098,
|
| 18 |
+
"size": {
|
| 19 |
+
"height": 224,
|
| 20 |
+
"width": 224
|
| 21 |
+
}
|
| 22 |
+
}
|
best_model/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c90a078aa5e9046803dfc023c65d383c2b7c17b9c0d552ecf38233750e1a0783
|
| 3 |
+
size 5048
|