HichTala commited on
Commit
3d8432b
·
verified ·
1 Parent(s): 48586f1

[Clean-up] Planned removal of the `max_size` argument

Browse files

- Replace deprecated `"feature_extractor_type": "DetrFeatureExtractor"` with `"image_processor_type": "DetrImageProcessor"`
- Remove deprecated `max_size` and replace `size` with a `Dict`

Files changed (1) hide show
  1. preprocessor_config.json +19 -17
preprocessor_config.json CHANGED
@@ -1,18 +1,20 @@
1
  {
2
- "do_normalize": true,
3
- "do_resize": true,
4
- "feature_extractor_type": "DetrFeatureExtractor",
5
- "format": "coco_detection",
6
- "image_mean": [
7
- 0.485,
8
- 0.456,
9
- 0.406
10
- ],
11
- "image_std": [
12
- 0.229,
13
- 0.224,
14
- 0.225
15
- ],
16
- "max_size": 1333,
17
- "size": 800
18
- }
 
 
 
1
  {
2
+ "do_normalize": true,
3
+ "do_resize": true,
4
+ "image_processor_type": "DetrImageProcessor",
5
+ "format": "coco_detection",
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
+ ],
16
+ "size": {
17
+ "longest_edge": 1333,
18
+ "shortest_edge": 800
19
+ }
20
+ }