Create preprocessor_config.json
Browse files- preprocessor_config.json +15 -0
preprocessor_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"resize": {
|
| 3 |
+
"target_size": [224, 224],
|
| 4 |
+
"keep_aspect_ratio": true,
|
| 5 |
+
"pad_to_size": true,
|
| 6 |
+
"padding_value": 0,
|
| 7 |
+
"interpolation": "bilinear"
|
| 8 |
+
},
|
| 9 |
+
"normalize": {
|
| 10 |
+
"mean": [0.485, 0.456, 0.406],
|
| 11 |
+
"std": [0.229, 0.224, 0.225],
|
| 12 |
+
"mode": "torch"
|
| 13 |
+
},
|
| 14 |
+
"to_tensor": true,
|
| 15 |
+
}
|