Upload folder using huggingface_hub
Browse files- checkpoint-2000/config.json +32 -0
- checkpoint-2000/optimizer.pt +3 -0
- checkpoint-2000/preprocessor_config.json +22 -0
- checkpoint-2000/pytorch_model.bin +3 -0
- checkpoint-2000/rng_state.pth +3 -0
- checkpoint-2000/scheduler.pt +3 -0
- checkpoint-2000/trainer_state.json +61 -0
- checkpoint-2000/training_args.bin +3 -0
- config.json +32 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
checkpoint-2000/config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "Positive",
|
| 13 |
+
"1": "Negative"
|
| 14 |
+
},
|
| 15 |
+
"image_size": 224,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 3072,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"Negative": 1,
|
| 20 |
+
"Positive": 0
|
| 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.34.0"
|
| 32 |
+
}
|
checkpoint-2000/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:532d186010d9a8b4b8a74aba0e3c3e7427684498e274b9ad9ffa244736ad32ce
|
| 3 |
+
size 686568453
|
checkpoint-2000/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-2000/pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7451285587022abcf01df28f6883a084f46f08b0a10fb76ce849ba10b45408c3
|
| 3 |
+
size 343268717
|
checkpoint-2000/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74e54dcb0f62f2c42c9920ceecb5903656a79cfffd5f60db366d2e87b347215c
|
| 3 |
+
size 14575
|
checkpoint-2000/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:130a46494ec0f3d0764c84515fd83f10030da46130a6334f3fe1fe93a2dfbb99
|
| 3 |
+
size 627
|
checkpoint-2000/trainer_state.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": 0.014515385031700134,
|
| 3 |
+
"best_model_checkpoint": "surface_crack_image_detection/checkpoint-2000",
|
| 4 |
+
"epoch": 2.0,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 2000,
|
| 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.5,
|
| 13 |
+
"learning_rate": 7.692307692307694e-06,
|
| 14 |
+
"loss": 0.0951,
|
| 15 |
+
"step": 500
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"epoch": 1.0,
|
| 19 |
+
"learning_rate": 5.128205128205128e-06,
|
| 20 |
+
"loss": 0.0122,
|
| 21 |
+
"step": 1000
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"epoch": 1.0,
|
| 25 |
+
"eval_accuracy": 0.999125,
|
| 26 |
+
"eval_loss": 0.020023183897137642,
|
| 27 |
+
"eval_runtime": 81.6171,
|
| 28 |
+
"eval_samples_per_second": 98.019,
|
| 29 |
+
"eval_steps_per_second": 12.252,
|
| 30 |
+
"step": 1000
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"epoch": 1.5,
|
| 34 |
+
"learning_rate": 2.564102564102564e-06,
|
| 35 |
+
"loss": 0.0095,
|
| 36 |
+
"step": 1500
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"epoch": 2.0,
|
| 40 |
+
"learning_rate": 0.0,
|
| 41 |
+
"loss": 0.0081,
|
| 42 |
+
"step": 2000
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"epoch": 2.0,
|
| 46 |
+
"eval_accuracy": 0.99925,
|
| 47 |
+
"eval_loss": 0.014515385031700134,
|
| 48 |
+
"eval_runtime": 80.0454,
|
| 49 |
+
"eval_samples_per_second": 99.943,
|
| 50 |
+
"eval_steps_per_second": 12.493,
|
| 51 |
+
"step": 2000
|
| 52 |
+
}
|
| 53 |
+
],
|
| 54 |
+
"logging_steps": 500,
|
| 55 |
+
"max_steps": 2000,
|
| 56 |
+
"num_train_epochs": 2,
|
| 57 |
+
"save_steps": 500,
|
| 58 |
+
"total_flos": 4.959487335333888e+18,
|
| 59 |
+
"trial_name": null,
|
| 60 |
+
"trial_params": null
|
| 61 |
+
}
|
checkpoint-2000/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4500a7e59bb12a1440963184983cf58c549b8d83938d4ceedfa81abf58046cd
|
| 3 |
+
size 4027
|
config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": "Positive",
|
| 13 |
+
"1": "Negative"
|
| 14 |
+
},
|
| 15 |
+
"image_size": 224,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 3072,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"Negative": 1,
|
| 20 |
+
"Positive": 0
|
| 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.34.0"
|
| 32 |
+
}
|
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:7451285587022abcf01df28f6883a084f46f08b0a10fb76ce849ba10b45408c3
|
| 3 |
+
size 343268717
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4500a7e59bb12a1440963184983cf58c549b8d83938d4ceedfa81abf58046cd
|
| 3 |
+
size 4027
|