ibelem commited on
Commit
73ab160
·
verified ·
1 Parent(s): bf4b497

Upload 3 files

Browse files
Files changed (3) hide show
  1. config.json +10 -0
  2. preprocessor_config.json +23 -0
  3. quantize_config.json +30 -0
config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "modnet",
3
+ "transformers.js_config": {
4
+ "free_dimension_overrides": {
5
+ "batch_size": 1,
6
+ "height": 341,
7
+ "width": 341
8
+ }
9
+ }
10
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_pad": false,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "feature_extractor_type": "ImageFeatureExtractor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "shortest_edge": 512
21
+ },
22
+ "size_divisibility": 32
23
+ }
quantize_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": false,
3
+ "reduce_range": false,
4
+ "per_model_config": {
5
+ "model": {
6
+ "op_types": [
7
+ "Sigmoid",
8
+ "Constant",
9
+ "Resize",
10
+ "Gather",
11
+ "MatMul",
12
+ "Clip",
13
+ "BatchNormalization",
14
+ "Concat",
15
+ "Conv",
16
+ "GlobalAveragePool",
17
+ "Expand",
18
+ "Add",
19
+ "Slice",
20
+ "Shape",
21
+ "Unsqueeze",
22
+ "Reshape",
23
+ "InstanceNormalization",
24
+ "Relu",
25
+ "Mul"
26
+ ],
27
+ "weight_type": "QUInt8"
28
+ }
29
+ }
30
+ }