Model save
Browse files- README.md +11 -12
- all_results.json +9 -9
- command.txt +2 -1
- config.json +0 -1
- eval_results.json +4 -4
- model.safetensors +1 -1
- train_results.json +5 -5
- trainer_state.json +0 -0
- training_args.bin +2 -2
README.md
CHANGED
@@ -2,8 +2,6 @@
|
|
2 |
license: apache-2.0
|
3 |
base_model: google/vit-base-patch16-224-in21k
|
4 |
tags:
|
5 |
-
- image-classification
|
6 |
-
- vision
|
7 |
- generated_from_trainer
|
8 |
metrics:
|
9 |
- f1
|
@@ -19,8 +17,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
19 |
|
20 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
|
21 |
It achieves the following results on the evaluation set:
|
22 |
-
- Loss: 0.0422
|
23 |
- F1: 0.9705
|
|
|
24 |
|
25 |
## Model description
|
26 |
|
@@ -40,8 +38,8 @@ More information needed
|
|
40 |
|
41 |
The following hyperparameters were used during training:
|
42 |
- learning_rate: 3e-05
|
43 |
-
- train_batch_size:
|
44 |
-
- eval_batch_size:
|
45 |
- seed: 1337
|
46 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
- lr_scheduler_type: linear
|
@@ -49,13 +47,14 @@ The following hyperparameters were used during training:
|
|
49 |
|
50 |
### Training results
|
51 |
|
52 |
-
| Training Loss | Epoch | Step | Validation Loss |
|
53 |
-
|
54 |
-
| 0.
|
55 |
-
| 0.
|
56 |
-
| 0.
|
57 |
-
| 0.
|
58 |
-
| 0.
|
|
|
59 |
|
60 |
|
61 |
### Framework versions
|
|
|
2 |
license: apache-2.0
|
3 |
base_model: google/vit-base-patch16-224-in21k
|
4 |
tags:
|
|
|
|
|
5 |
- generated_from_trainer
|
6 |
metrics:
|
7 |
- f1
|
|
|
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 an unknown dataset.
|
19 |
It achieves the following results on the evaluation set:
|
|
|
20 |
- F1: 0.9705
|
21 |
+
- Loss: 0.0429
|
22 |
|
23 |
## Model description
|
24 |
|
|
|
38 |
|
39 |
The following hyperparameters were used during training:
|
40 |
- learning_rate: 3e-05
|
41 |
+
- train_batch_size: 128
|
42 |
+
- eval_batch_size: 128
|
43 |
- seed: 1337
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: linear
|
|
|
47 |
|
48 |
### Training results
|
49 |
|
50 |
+
| Training Loss | Epoch | Step | F1 | Validation Loss |
|
51 |
+
|:-------------:|:-----:|:-----:|:------:|:---------------:|
|
52 |
+
| 0.0796 | 1.0 | 3367 | 0.4973 | 0.0687 |
|
53 |
+
| 0.0611 | 2.0 | 6734 | 0.4973 | 0.0585 |
|
54 |
+
| 0.0581 | 3.0 | 10101 | 0.4973 | 0.0591 |
|
55 |
+
| 0.059 | 4.0 | 13468 | 0.4973 | 0.0550 |
|
56 |
+
| 0.0563 | 5.0 | 16835 | 0.4973 | 0.0540 |
|
57 |
+
| 0.0532 | 5.0 | 19805 | 0.9705 | 0.0429 |
|
58 |
|
59 |
|
60 |
### Framework versions
|
all_results.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
{
|
2 |
"epoch": 5.0,
|
3 |
"eval_f1": 0.9705180789481339,
|
4 |
-
"eval_loss": 0.
|
5 |
-
"eval_runtime":
|
6 |
-
"eval_samples_per_second":
|
7 |
-
"eval_steps_per_second": 3.
|
8 |
-
"total_flos": 9.
|
9 |
-
"train_loss": 0.
|
10 |
-
"train_runtime":
|
11 |
-
"train_samples_per_second":
|
12 |
-
"train_steps_per_second":
|
13 |
}
|
|
|
1 |
{
|
2 |
"epoch": 5.0,
|
3 |
"eval_f1": 0.9705180789481339,
|
4 |
+
"eval_loss": 0.04290741682052612,
|
5 |
+
"eval_runtime": 939.7613,
|
6 |
+
"eval_samples_per_second": 219.483,
|
7 |
+
"eval_steps_per_second": 3.43,
|
8 |
+
"total_flos": 9.82001462664467e+19,
|
9 |
+
"train_loss": 0.0,
|
10 |
+
"train_runtime": 0.0662,
|
11 |
+
"train_samples_per_second": 19152190.372,
|
12 |
+
"train_steps_per_second": 299304.924
|
13 |
}
|
command.txt
CHANGED
@@ -21,4 +21,5 @@ python run_image_classification_val_test.py \
|
|
21 |
--seed 1337 \
|
22 |
--ignore_mismatched_sizes \
|
23 |
--image_column_name image_url \
|
24 |
-
--label_column_name label
|
|
|
|
21 |
--seed 1337 \
|
22 |
--ignore_mismatched_sizes \
|
23 |
--image_column_name image_url \
|
24 |
+
--label_column_name label \
|
25 |
+
--resume_from_checkpoint /trunk2/yufei/summer24/transformers/examples/pytorch/image-classification/test_default_model/checkpoint-19805
|
config.json
CHANGED
@@ -24,7 +24,6 @@
|
|
24 |
"num_channels": 3,
|
25 |
"num_hidden_layers": 12,
|
26 |
"patch_size": 16,
|
27 |
-
"problem_type": "regression",
|
28 |
"qkv_bias": true,
|
29 |
"torch_dtype": "float32",
|
30 |
"transformers_version": "4.43.0.dev0"
|
|
|
24 |
"num_channels": 3,
|
25 |
"num_hidden_layers": 12,
|
26 |
"patch_size": 16,
|
|
|
27 |
"qkv_bias": true,
|
28 |
"torch_dtype": "float32",
|
29 |
"transformers_version": "4.43.0.dev0"
|
eval_results.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
"epoch": 5.0,
|
3 |
"eval_f1": 0.9705180789481339,
|
4 |
-
"eval_loss": 0.
|
5 |
-
"eval_runtime":
|
6 |
-
"eval_samples_per_second":
|
7 |
-
"eval_steps_per_second": 3.
|
8 |
}
|
|
|
1 |
{
|
2 |
"epoch": 5.0,
|
3 |
"eval_f1": 0.9705180789481339,
|
4 |
+
"eval_loss": 0.04290741682052612,
|
5 |
+
"eval_runtime": 939.7613,
|
6 |
+
"eval_samples_per_second": 219.483,
|
7 |
+
"eval_steps_per_second": 3.43
|
8 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343220892
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:472717343c19fb122138fc3fa7339902c64523b4ea7aca0a6a002c718da0878b
|
3 |
size 343220892
|
train_results.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
"epoch": 5.0,
|
3 |
-
"total_flos": 9.
|
4 |
-
"train_loss": 0.
|
5 |
-
"train_runtime":
|
6 |
-
"train_samples_per_second":
|
7 |
-
"train_steps_per_second":
|
8 |
}
|
|
|
1 |
{
|
2 |
"epoch": 5.0,
|
3 |
+
"total_flos": 9.82001462664467e+19,
|
4 |
+
"train_loss": 0.0,
|
5 |
+
"train_runtime": 0.0662,
|
6 |
+
"train_samples_per_second": 19152190.372,
|
7 |
+
"train_steps_per_second": 299304.924
|
8 |
}
|
trainer_state.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8bfb25f00044de65eddbc5555b76d9d4de4b7dde1e87fa4f820434b1835a3763
|
3 |
+
size 5368
|