0xgr3y commited on
Commit
c93fb53
·
verified ·
1 Parent(s): a09a1b5

Upload preprocessor_config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. preprocessor_config.json +24 -8
preprocessor_config.json CHANGED
@@ -6,15 +6,31 @@
6
  },
7
  "resample": "bilinear",
8
  "normalize": true,
9
- "mode": "densenet_preprocess_input",
10
  "channel_order": "RGB",
11
- "mean": [123.675, 116.28, 103.53],
12
- "std": [58.395, 57.12, 57.375],
 
 
 
 
 
 
 
 
13
  "scale": 1.0,
14
- "description": "Use tf.keras.applications.densenet.preprocess_input for automatic preprocessing. For manual TF-Lite: RGB->BGR, subtract ImageNet mean. Note: preprocessor_config.json reserves 'BGR' for DenseNet ImageNet references, but densenet.preprocess_input() works on RGB input and handles the internal conversion."
15
  },
16
  "input_name": "input_1",
17
- "output_name": "output_1",
18
- "input_shape": [1, 320, 320, 3],
19
- "output_shape": [1, 8]
20
- }
 
 
 
 
 
 
 
 
 
6
  },
7
  "resample": "bilinear",
8
  "normalize": true,
9
+ "mode": "efficientnet_v2_preprocess_input",
10
  "channel_order": "RGB",
11
+ "mean": [
12
+ 0.0,
13
+ 0.0,
14
+ 0.0
15
+ ],
16
+ "std": [
17
+ 1.0,
18
+ 1.0,
19
+ 1.0
20
+ ],
21
  "scale": 1.0,
22
+ "description": "preprocess_input is identity in TF 2.12+; EfficientNetV2-S includes internal Rescaling layer. Input expects raw [0, 255] float32."
23
  },
24
  "input_name": "input_1",
25
+ "output_name": "dense_1",
26
+ "input_shape": [
27
+ 1,
28
+ 320,
29
+ 320,
30
+ 3
31
+ ],
32
+ "output_shape": [
33
+ 1,
34
+ 8
35
+ ]
36
+ }