KhalfounMehdi
commited on
Commit
•
a5f564c
1
Parent(s):
d2b3039
Upload folder using huggingface_hub
Browse files- README.md +22 -0
- checkpoint-328/config.json +33 -0
- checkpoint-328/optimizer.pt +3 -0
- checkpoint-328/pytorch_model.bin +3 -0
- checkpoint-328/rng_state.pth +3 -0
- checkpoint-328/scheduler.pt +3 -0
- checkpoint-328/trainer_state.json +79 -0
- checkpoint-328/training_args.bin +3 -0
- config.json +33 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- runs/Sep02_01-22-19_d88f5e698586/events.out.tfevents.1693617750.d88f5e698586.15526.0 +3 -0
- training_args.bin +3 -0
- training_params.json +28 -0
README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- autotrain
|
5 |
+
- image-classification
|
6 |
+
widget:
|
7 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
8 |
+
example_title: Tiger
|
9 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
|
10 |
+
example_title: Teapot
|
11 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
12 |
+
example_title: Palace
|
13 |
+
datasets:
|
14 |
+
- KhalfounMehdi/dermatology_anomaly_detection_vit
|
15 |
+
---
|
16 |
+
|
17 |
+
# Model Trained Using AutoTrain
|
18 |
+
|
19 |
+
- Problem type: Image Classification
|
20 |
+
|
21 |
+
## Validation Metricsg
|
22 |
+
No validation metrics available
|
checkpoint-328/config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"_num_labels": 2,
|
4 |
+
"architectures": [
|
5 |
+
"ViTForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"encoder_stride": 16,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.0,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "benign",
|
14 |
+
"1": "malignant"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"benign": 0,
|
21 |
+
"malignant": 1
|
22 |
+
},
|
23 |
+
"layer_norm_eps": 1e-12,
|
24 |
+
"model_type": "vit",
|
25 |
+
"num_attention_heads": 12,
|
26 |
+
"num_channels": 3,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"patch_size": 16,
|
29 |
+
"problem_type": "single_label_classification",
|
30 |
+
"qkv_bias": true,
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.33.0.dev0"
|
33 |
+
}
|
checkpoint-328/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2dea2832d96917b3a84fa54e922e3ade82db3e8b2965cb6be0c7153fefbaea74
|
3 |
+
size 686568453
|
checkpoint-328/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bcfa70d27ba48c1400fd6fcd50064b156cb778c92eec070ca25543aeaac6387c
|
3 |
+
size 343268717
|
checkpoint-328/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ebb678ced335e51312e1f12573c99cc173c86093f0357700dbbef3ed11fb5679
|
3 |
+
size 14575
|
checkpoint-328/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2a93765374774891e30a4026da07e8caf10d0b6dd82b7e6f5867f16b63f9454
|
3 |
+
size 627
|
checkpoint-328/trainer_state.json
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 328,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.2,
|
13 |
+
"learning_rate": 0.00019393939393939395,
|
14 |
+
"loss": 0.5722,
|
15 |
+
"step": 32
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.39,
|
19 |
+
"learning_rate": 0.00017898305084745764,
|
20 |
+
"loss": 0.6073,
|
21 |
+
"step": 64
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.59,
|
25 |
+
"learning_rate": 0.00015728813559322036,
|
26 |
+
"loss": 0.6517,
|
27 |
+
"step": 96
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 0.78,
|
31 |
+
"learning_rate": 0.00013559322033898305,
|
32 |
+
"loss": 0.4895,
|
33 |
+
"step": 128
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 0.98,
|
37 |
+
"learning_rate": 0.00011389830508474577,
|
38 |
+
"loss": 0.6097,
|
39 |
+
"step": 160
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 1.17,
|
43 |
+
"learning_rate": 9.220338983050847e-05,
|
44 |
+
"loss": 0.6041,
|
45 |
+
"step": 192
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 1.37,
|
49 |
+
"learning_rate": 7.05084745762712e-05,
|
50 |
+
"loss": 0.4871,
|
51 |
+
"step": 224
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 1.56,
|
55 |
+
"learning_rate": 4.88135593220339e-05,
|
56 |
+
"loss": 0.601,
|
57 |
+
"step": 256
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"epoch": 1.76,
|
61 |
+
"learning_rate": 2.711864406779661e-05,
|
62 |
+
"loss": 0.5946,
|
63 |
+
"step": 288
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 1.95,
|
67 |
+
"learning_rate": 5.423728813559322e-06,
|
68 |
+
"loss": 0.5771,
|
69 |
+
"step": 320
|
70 |
+
}
|
71 |
+
],
|
72 |
+
"logging_steps": 32,
|
73 |
+
"max_steps": 328,
|
74 |
+
"num_train_epochs": 2,
|
75 |
+
"save_steps": 500,
|
76 |
+
"total_flos": 1.016694903743447e+17,
|
77 |
+
"trial_name": null,
|
78 |
+
"trial_params": null
|
79 |
+
}
|
checkpoint-328/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:81e6728b140c511f2048044717c909b32ad01062b315b4e87f30981def8700ba
|
3 |
+
size 4027
|
config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"_num_labels": 2,
|
4 |
+
"architectures": [
|
5 |
+
"ViTForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"encoder_stride": 16,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.0,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "benign",
|
14 |
+
"1": "malignant"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"benign": 0,
|
21 |
+
"malignant": 1
|
22 |
+
},
|
23 |
+
"layer_norm_eps": 1e-12,
|
24 |
+
"model_type": "vit",
|
25 |
+
"num_attention_heads": 12,
|
26 |
+
"num_channels": 3,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"patch_size": 16,
|
29 |
+
"problem_type": "single_label_classification",
|
30 |
+
"qkv_bias": true,
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.33.0.dev0"
|
33 |
+
}
|
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 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bcfa70d27ba48c1400fd6fcd50064b156cb778c92eec070ca25543aeaac6387c
|
3 |
+
size 343268717
|
runs/Sep02_01-22-19_d88f5e698586/events.out.tfevents.1693617750.d88f5e698586.15526.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ac9ffc36f49347de4f2b8b183153955915a773d7896fe38fff94d1a99bc7a558
|
3 |
+
size 6023
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:81e6728b140c511f2048044717c909b32ad01062b315b4e87f30981def8700ba
|
3 |
+
size 4027
|
training_params.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "KhalfounMehdi/dermatology_anomaly_detection_vit",
|
3 |
+
"model_name": "google/vit-base-patch16-224-in21k",
|
4 |
+
"lr": 0.0002,
|
5 |
+
"epochs": 2,
|
6 |
+
"batch_size": 4,
|
7 |
+
"warmup_ratio": 0.1,
|
8 |
+
"gradient_accumulation": 1,
|
9 |
+
"optimizer": "adamw_torch",
|
10 |
+
"scheduler": "linear",
|
11 |
+
"weight_decay": 0.0,
|
12 |
+
"max_grad_norm": 1.0,
|
13 |
+
"seed": 42,
|
14 |
+
"train_split": "train",
|
15 |
+
"valid_split": null,
|
16 |
+
"logging_steps": -1,
|
17 |
+
"project_name": "dermatology_vit",
|
18 |
+
"auto_find_batch_size": false,
|
19 |
+
"fp16": false,
|
20 |
+
"save_total_limit": 1,
|
21 |
+
"save_strategy": "epoch",
|
22 |
+
"token": null,
|
23 |
+
"push_to_hub": true,
|
24 |
+
"repo_id": "KhalfounMehdi/dermatology_vit",
|
25 |
+
"evaluation_strategy": "epoch",
|
26 |
+
"image_column": "image",
|
27 |
+
"target_column": "label"
|
28 |
+
}
|