tuphamdf commited on
Commit
34106e2
1 Parent(s): a90fe7f

End of training

Browse files
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: skincare-detection
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # skincare-detection
17
+
18
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.5268
21
+ - Accuracy: 0.7904
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.0002
41
+ - train_batch_size: 32
42
+ - eval_batch_size: 32
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 4
45
+ - total_train_batch_size: 128
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 1
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
55
+ | 0.9626 | 0.99 | 61 | 0.5268 | 0.7904 |
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - Transformers 4.38.2
61
+ - Pytorch 2.1.2
62
+ - Datasets 2.17.1
63
+ - Tokenizers 0.15.2
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.99,
3
+ "total_flos": 6.0508456960367e+17,
4
+ "train_loss": 0.7793287371025711,
5
+ "train_runtime": 231.1327,
6
+ "train_samples_per_second": 33.946,
7
+ "train_steps_per_second": 0.264
8
+ }
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
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": 768,
11
+ "id2label": {
12
+ "0": "acne",
13
+ "1": "dry",
14
+ "2": "hidradenitis_suppurativa",
15
+ "3": "milia",
16
+ "4": "normal",
17
+ "5": "oily",
18
+ "6": "rosacea"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "acne": 0,
25
+ "dry": 1,
26
+ "hidradenitis_suppurativa": 2,
27
+ "milia": 3,
28
+ "normal": 4,
29
+ "oily": 5,
30
+ "rosacea": 6
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "model_type": "vit",
34
+ "num_attention_heads": 12,
35
+ "num_channels": 3,
36
+ "num_hidden_layers": 12,
37
+ "patch_size": 16,
38
+ "problem_type": "single_label_classification",
39
+ "qkv_bias": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.38.2"
42
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d73d0afb68247d0448aafb93cfffae921a45a9a659bcac2dbe2b057ca662251
3
+ size 343239356
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
+ }
runs/Mar01_10-20-44_0f3887521394/events.out.tfevents.1709288446.0f3887521394.27.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5364757d3b8e0141f4a00d632da50cda238fbadf67503a2d5c368625b5ac8967
3
+ size 5651
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.99,
3
+ "total_flos": 6.0508456960367e+17,
4
+ "train_loss": 0.7793287371025711,
5
+ "train_runtime": 231.1327,
6
+ "train_samples_per_second": 33.946,
7
+ "train_steps_per_second": 0.264
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.7904191616766467,
3
+ "best_model_checkpoint": "skincare-detection/checkpoint-61",
4
+ "epoch": 0.991869918699187,
5
+ "eval_steps": 500,
6
+ "global_step": 61,
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.52,
13
+ "grad_norm": 0.6144677996635437,
14
+ "learning_rate": 0.00010740740740740742,
15
+ "loss": 0.9626,
16
+ "step": 32
17
+ },
18
+ {
19
+ "epoch": 0.99,
20
+ "eval_accuracy": 0.7904191616766467,
21
+ "eval_loss": 0.5268285870552063,
22
+ "eval_runtime": 12.168,
23
+ "eval_samples_per_second": 96.072,
24
+ "eval_steps_per_second": 3.041,
25
+ "step": 61
26
+ },
27
+ {
28
+ "epoch": 0.99,
29
+ "step": 61,
30
+ "total_flos": 6.0508456960367e+17,
31
+ "train_loss": 0.7793287371025711,
32
+ "train_runtime": 231.1327,
33
+ "train_samples_per_second": 33.946,
34
+ "train_steps_per_second": 0.264
35
+ }
36
+ ],
37
+ "logging_steps": 32,
38
+ "max_steps": 61,
39
+ "num_input_tokens_seen": 0,
40
+ "num_train_epochs": 1,
41
+ "save_steps": 500,
42
+ "total_flos": 6.0508456960367e+17,
43
+ "train_batch_size": 32,
44
+ "trial_name": null,
45
+ "trial_params": null
46
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eeb5e1cdd191226dda034f610f4983376ba030389a2ad9ca754d87bf2dbdfc3c
3
+ size 4920