Upload folder using huggingface_hub
Browse files- checkpoint-96/config.json +34 -0
- checkpoint-96/model.safetensors +3 -0
- checkpoint-96/optimizer.pt +3 -0
- checkpoint-96/preprocessor_config.json +36 -0
- checkpoint-96/rng_state.pth +3 -0
- checkpoint-96/scheduler.pt +3 -0
- checkpoint-96/trainer_state.json +39 -0
- checkpoint-96/training_args.bin +3 -0
- model.safetensors +1 -1
checkpoint-96/config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/lemon_quality_image_detection",
|
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": "good_quality",
|
13 |
+
"1": "empty_background",
|
14 |
+
"2": "bad_quality"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"bad_quality": 2,
|
21 |
+
"empty_background": 1,
|
22 |
+
"good_quality": 0
|
23 |
+
},
|
24 |
+
"layer_norm_eps": 1e-12,
|
25 |
+
"model_type": "vit",
|
26 |
+
"num_attention_heads": 12,
|
27 |
+
"num_channels": 3,
|
28 |
+
"num_hidden_layers": 12,
|
29 |
+
"patch_size": 16,
|
30 |
+
"problem_type": "single_label_classification",
|
31 |
+
"qkv_bias": true,
|
32 |
+
"torch_dtype": "float32",
|
33 |
+
"transformers_version": "4.39.2"
|
34 |
+
}
|
checkpoint-96/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6bd55445e02d383312f8005664ccd8003c0eac7c69b6e99887df7d690bde0be3
|
3 |
+
size 343227052
|
checkpoint-96/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2c1b8169c2ae539a83b698e12344c815662631bceab73a6c14a30648424729cc
|
3 |
+
size 686574597
|
checkpoint-96/preprocessor_config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_rescale",
|
8 |
+
"rescale_factor",
|
9 |
+
"do_normalize",
|
10 |
+
"image_mean",
|
11 |
+
"image_std",
|
12 |
+
"return_tensors",
|
13 |
+
"data_format",
|
14 |
+
"input_data_format"
|
15 |
+
],
|
16 |
+
"do_normalize": true,
|
17 |
+
"do_rescale": true,
|
18 |
+
"do_resize": true,
|
19 |
+
"image_mean": [
|
20 |
+
0.5,
|
21 |
+
0.5,
|
22 |
+
0.5
|
23 |
+
],
|
24 |
+
"image_processor_type": "ViTImageProcessor",
|
25 |
+
"image_std": [
|
26 |
+
0.5,
|
27 |
+
0.5,
|
28 |
+
0.5
|
29 |
+
],
|
30 |
+
"resample": 2,
|
31 |
+
"rescale_factor": 0.00392156862745098,
|
32 |
+
"size": {
|
33 |
+
"height": 224,
|
34 |
+
"width": 224
|
35 |
+
}
|
36 |
+
}
|
checkpoint-96/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b27285aa3ff0f0db4c62d363da2b3645d4030a8b4d3acece158133fa932ae4b4
|
3 |
+
size 14575
|
checkpoint-96/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:15bb49269ccecfdc9667bb91e224c51bd088464eb9e8a691b684ae05d3905e6a
|
3 |
+
size 627
|
checkpoint-96/trainer_state.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.05073258653283119,
|
3 |
+
"best_model_checkpoint": "lemon_quality_image_detection/checkpoint-96",
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 96,
|
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.9990118577075099,
|
14 |
+
"eval_loss": 0.051611337810754776,
|
15 |
+
"eval_runtime": 10.0915,
|
16 |
+
"eval_samples_per_second": 100.283,
|
17 |
+
"eval_steps_per_second": 12.585,
|
18 |
+
"step": 48
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"epoch": 2.0,
|
22 |
+
"eval_accuracy": 0.9990118577075099,
|
23 |
+
"eval_loss": 0.05073258653283119,
|
24 |
+
"eval_runtime": 10.0356,
|
25 |
+
"eval_samples_per_second": 100.841,
|
26 |
+
"eval_steps_per_second": 12.655,
|
27 |
+
"step": 96
|
28 |
+
}
|
29 |
+
],
|
30 |
+
"logging_steps": 500,
|
31 |
+
"max_steps": 96,
|
32 |
+
"num_input_tokens_seen": 0,
|
33 |
+
"num_train_epochs": 2,
|
34 |
+
"save_steps": 500,
|
35 |
+
"total_flos": 2.349578183451771e+17,
|
36 |
+
"train_batch_size": 32,
|
37 |
+
"trial_name": null,
|
38 |
+
"trial_params": null
|
39 |
+
}
|
checkpoint-96/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b6174adc0fb4e35cf1719b1dc931f145857d37f16e89c2cfa8af2fbcb4b830bc
|
3 |
+
size 4411
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343227052
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6bd55445e02d383312f8005664ccd8003c0eac7c69b6e99887df7d690bde0be3
|
3 |
size 343227052
|