Loren Chill
commited on
Commit
·
34dac7f
1
Parent(s):
b55a5ec
Add preprocessor_config.json for UNI
Browse files- preprocessor_config.json +22 -0
preprocessor_config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_comment": "Preprocessor configuration for mahmoodlab/UNI (image encoder). Optimized for image understanding tasks.",
|
| 3 |
+
"feature_extractor_type": "ImageFeatureExtractor",
|
| 4 |
+
"model_input_name": "pixel_values",
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"do_center_crop": true,
|
| 7 |
+
"do_normalize": true,
|
| 8 |
+
"do_convert_rgb": true,
|
| 9 |
+
"size": {
|
| 10 |
+
"shortest_edge": 224
|
| 11 |
+
},
|
| 12 |
+
"crop_size": {
|
| 13 |
+
"height": 224,
|
| 14 |
+
"width": 224
|
| 15 |
+
},
|
| 16 |
+
"image_mean": [0.485, 0.456, 0.406],
|
| 17 |
+
"image_std": [0.229, 0.224, 0.225],
|
| 18 |
+
"resample": 2,
|
| 19 |
+
"format": "RGB",
|
| 20 |
+
"reduce_labels": false
|
| 21 |
+
}
|
| 22 |
+
|