Create preprocessor_config.json
Browse files- preprocessor_config.json +34 -0
preprocessor_config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_normalize": true,
|
| 3 |
+
"do_resize": true,
|
| 4 |
+
"image_mean": [0.5, 0.5, 0.5],
|
| 5 |
+
"image_processor_type": "ViTImageProcessor",
|
| 6 |
+
"image_std": [0.5, 0.5, 0.5],
|
| 7 |
+
"size": {
|
| 8 |
+
"height": 224,
|
| 9 |
+
"width": 224
|
| 10 |
+
},
|
| 11 |
+
"image_formats": [".png", ".jpg", ".jpeg", ".bmp", ".gif", ".tiff"],
|
| 12 |
+
"do_verify_images": true,
|
| 13 |
+
"exclude_labels": ["Land_Slide"],
|
| 14 |
+
"resample_method": "bilinear",
|
| 15 |
+
"training_args": {
|
| 16 |
+
"batch_size": 16,
|
| 17 |
+
"num_epochs": 3,
|
| 18 |
+
"learning_rate": 3e-5,
|
| 19 |
+
"weight_decay": 0.01,
|
| 20 |
+
"evaluation_strategy": "epoch",
|
| 21 |
+
"save_strategy": "epoch"
|
| 22 |
+
},
|
| 23 |
+
"dataset_split": {
|
| 24 |
+
"train_test_ratio": 0.8
|
| 25 |
+
},
|
| 26 |
+
"image_augmentation": {
|
| 27 |
+
"resize": [224, 224],
|
| 28 |
+
"to_tensor": true,
|
| 29 |
+
"normalize": {
|
| 30 |
+
"mean": [0.5, 0.5, 0.5],
|
| 31 |
+
"std": [0.5, 0.5, 0.5]
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
}
|