Upload processor
Browse files- preprocessor_config.json +12 -11
- processor_config.json +5 -0
- video_preprocessor_config.json +36 -0
preprocessor_config.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"do_convert_rgb": true,
|
| 3 |
"do_normalize": true,
|
| 4 |
-
"do_pad": false,
|
| 5 |
"do_rescale": true,
|
| 6 |
"do_resize": true,
|
| 7 |
"image_mean": [
|
|
@@ -9,27 +14,23 @@
|
|
| 9 |
0.456,
|
| 10 |
0.406
|
| 11 |
],
|
| 12 |
-
"image_processor_type": "
|
| 13 |
"image_std": [
|
| 14 |
0.229,
|
| 15 |
0.224,
|
| 16 |
0.225
|
| 17 |
],
|
| 18 |
-
"
|
|
|
|
| 19 |
"height": 256,
|
| 20 |
"width": 256
|
| 21 |
},
|
| 22 |
-
"mask_size": {
|
| 23 |
-
"longest_edge": 256
|
| 24 |
-
},
|
| 25 |
-
"pad_size": {
|
| 26 |
-
"height": 1024,
|
| 27 |
-
"width": 1024
|
| 28 |
-
},
|
| 29 |
"processor_class": "Sam2Processor",
|
| 30 |
"resample": 2,
|
| 31 |
"rescale_factor": 0.00392156862745098,
|
|
|
|
| 32 |
"size": {
|
| 33 |
-
"
|
|
|
|
| 34 |
}
|
| 35 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"crop_size": null,
|
| 3 |
+
"data_format": "channels_first",
|
| 4 |
+
"default_to_square": true,
|
| 5 |
+
"device": null,
|
| 6 |
+
"disable_grouping": null,
|
| 7 |
+
"do_center_crop": null,
|
| 8 |
"do_convert_rgb": true,
|
| 9 |
"do_normalize": true,
|
|
|
|
| 10 |
"do_rescale": true,
|
| 11 |
"do_resize": true,
|
| 12 |
"image_mean": [
|
|
|
|
| 14 |
0.456,
|
| 15 |
0.406
|
| 16 |
],
|
| 17 |
+
"image_processor_type": "Sam2ImageProcessorFast",
|
| 18 |
"image_std": [
|
| 19 |
0.229,
|
| 20 |
0.224,
|
| 21 |
0.225
|
| 22 |
],
|
| 23 |
+
"input_data_format": null,
|
| 24 |
+
"mask_size": {
|
| 25 |
"height": 256,
|
| 26 |
"width": 256
|
| 27 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
"processor_class": "Sam2Processor",
|
| 29 |
"resample": 2,
|
| 30 |
"rescale_factor": 0.00392156862745098,
|
| 31 |
+
"return_tensors": null,
|
| 32 |
"size": {
|
| 33 |
+
"height": 1024,
|
| 34 |
+
"width": 1024
|
| 35 |
}
|
| 36 |
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"point_pad_value": -10,
|
| 3 |
+
"processor_class": "Sam2Processor",
|
| 4 |
+
"target_size": 1024
|
| 5 |
+
}
|
video_preprocessor_config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": null,
|
| 3 |
+
"data_format": "channels_first",
|
| 4 |
+
"default_to_square": true,
|
| 5 |
+
"device": null,
|
| 6 |
+
"do_center_crop": null,
|
| 7 |
+
"do_convert_rgb": true,
|
| 8 |
+
"do_normalize": true,
|
| 9 |
+
"do_pad": null,
|
| 10 |
+
"do_rescale": true,
|
| 11 |
+
"do_resize": true,
|
| 12 |
+
"do_sample_frames": null,
|
| 13 |
+
"fps": null,
|
| 14 |
+
"image_mean": [
|
| 15 |
+
0.485,
|
| 16 |
+
0.456,
|
| 17 |
+
0.406
|
| 18 |
+
],
|
| 19 |
+
"image_std": [
|
| 20 |
+
0.229,
|
| 21 |
+
0.224,
|
| 22 |
+
0.225
|
| 23 |
+
],
|
| 24 |
+
"input_data_format": null,
|
| 25 |
+
"num_frames": null,
|
| 26 |
+
"processor_class": "Sam2Processor",
|
| 27 |
+
"resample": 2,
|
| 28 |
+
"rescale_factor": 0.00392156862745098,
|
| 29 |
+
"size": {
|
| 30 |
+
"height": 1024,
|
| 31 |
+
"width": 1024
|
| 32 |
+
},
|
| 33 |
+
"size_divisor": null,
|
| 34 |
+
"video_metadata": null,
|
| 35 |
+
"video_processor_type": "Sam2VideoProcessor"
|
| 36 |
+
}
|