Upload folder using huggingface_hub
Browse files- checkpoint-28/config.json +32 -0
- checkpoint-28/model.safetensors +3 -0
- checkpoint-28/optimizer.pt +3 -0
- checkpoint-28/preprocessor_config.json +22 -0
- checkpoint-28/rng_state.pth +3 -0
- checkpoint-28/scheduler.pt +3 -0
- checkpoint-28/trainer_state.json +39 -0
- checkpoint-28/training_args.bin +3 -0
- config.json +2 -2
- model.safetensors +1 -1
- training_args.bin +2 -2
checkpoint-28/config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/smoker_image_classification",
|
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": "notsmoking",
|
13 |
+
"1": "smoking"
|
14 |
+
},
|
15 |
+
"image_size": 224,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"notsmoking": 0,
|
20 |
+
"smoking": 1
|
21 |
+
},
|
22 |
+
"layer_norm_eps": 1e-12,
|
23 |
+
"model_type": "vit",
|
24 |
+
"num_attention_heads": 12,
|
25 |
+
"num_channels": 3,
|
26 |
+
"num_hidden_layers": 12,
|
27 |
+
"patch_size": 16,
|
28 |
+
"problem_type": "single_label_classification",
|
29 |
+
"qkv_bias": true,
|
30 |
+
"torch_dtype": "float32",
|
31 |
+
"transformers_version": "4.38.2"
|
32 |
+
}
|
checkpoint-28/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:899087cb0f715a98e3a1a240b24ead0110b6f91de8e80693ae4ac70916fb4e76
|
3 |
+
size 343223968
|
checkpoint-28/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d217dd91c4f53651aaad19224f5c87285dd96258ca376834da38baf3b121ae3c
|
3 |
+
size 686568453
|
checkpoint-28/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 |
+
}
|
checkpoint-28/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd130f3a3942e5b6ce5b16d47205fd5a74ff91b960526587e1ebbc6cee1fc255
|
3 |
+
size 14575
|
checkpoint-28/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8d80258150132c78f34efebb2fbe85fb3c8b50ab50662d431d02490d9a50f7b6
|
3 |
+
size 627
|
checkpoint-28/trainer_state.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.24243739247322083,
|
3 |
+
"best_model_checkpoint": "smoker_image_classification/checkpoint-28",
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 28,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 1.0,
|
13 |
+
"eval_accuracy": 0.96875,
|
14 |
+
"eval_loss": 0.24330951273441315,
|
15 |
+
"eval_runtime": 2.1953,
|
16 |
+
"eval_samples_per_second": 102.037,
|
17 |
+
"eval_steps_per_second": 3.189,
|
18 |
+
"step": 14
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"epoch": 2.0,
|
22 |
+
"eval_accuracy": 0.96875,
|
23 |
+
"eval_loss": 0.24243739247322083,
|
24 |
+
"eval_runtime": 2.2596,
|
25 |
+
"eval_samples_per_second": 99.132,
|
26 |
+
"eval_steps_per_second": 3.098,
|
27 |
+
"step": 28
|
28 |
+
}
|
29 |
+
],
|
30 |
+
"logging_steps": 500,
|
31 |
+
"max_steps": 28,
|
32 |
+
"num_input_tokens_seen": 0,
|
33 |
+
"num_train_epochs": 2,
|
34 |
+
"save_steps": 500,
|
35 |
+
"total_flos": 1.3886564538934886e+17,
|
36 |
+
"train_batch_size": 64,
|
37 |
+
"trial_name": null,
|
38 |
+
"trial_params": null
|
39 |
+
}
|
checkpoint-28/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:86f0cc416eb948b77e4a758e5142b81c862b9457335a156b939e3a62f8ea29a6
|
3 |
+
size 4411
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
@@ -28,5 +28,5 @@
|
|
28 |
"problem_type": "single_label_classification",
|
29 |
"qkv_bias": true,
|
30 |
"torch_dtype": "float32",
|
31 |
-
"transformers_version": "4.
|
32 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "dima806/smoker_image_classification",
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
|
|
28 |
"problem_type": "single_label_classification",
|
29 |
"qkv_bias": true,
|
30 |
"torch_dtype": "float32",
|
31 |
+
"transformers_version": "4.38.2"
|
32 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343223968
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:899087cb0f715a98e3a1a240b24ead0110b6f91de8e80693ae4ac70916fb4e76
|
3 |
size 343223968
|
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:86f0cc416eb948b77e4a758e5142b81c862b9457335a156b939e3a62f8ea29a6
|
3 |
+
size 4411
|