acrkaan commited on
Commit
88c7281
·
verified ·
1 Parent(s): e055513

Upload 6 files

Browse files
Files changed (5) hide show
  1. README.md +2 -2
  2. config.json +0 -0
  3. onnx/model.onnx +2 -2
  4. preprocessor_config.json +5 -14
  5. quantize_config.json +15 -6
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
- base_model: google/mobilenet_v2_1.4_224
3
  library_name: transformers.js
4
  ---
5
 
6
- https://huggingface.co/google/mobilenet_v2_1.4_224 with ONNX weights to be compatible with Transformers.js.
7
 
8
  Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).
 
1
  ---
2
+ base_model: timm/mobilenetv3_large_100.miil_in21k
3
  library_name: transformers.js
4
  ---
5
 
6
+ https://huggingface.co/timm/mobilenetv3_large_100.miil_in21k with ONNX weights to be compatible with Transformers.js.
7
 
8
  Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).
config.json CHANGED
The diff for this file is too large to render. See raw diff
 
onnx/model.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:29ecd0fe9119c4bf0229ab31b5697660cb0af5893cb470183b96cc6fec0d8203
3
- size 12219645
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6be5b0f4434e5db524ebafdfeb9535736d27608b75106be38d58407ad09439cb
3
+ size 37194023
preprocessor_config.json CHANGED
@@ -4,23 +4,14 @@
4
  "width": 224
5
  },
6
  "do_center_crop": true,
7
- "do_normalize": true,
 
8
  "do_rescale": true,
9
  "do_resize": true,
10
- "image_mean": [
11
- 0.5,
12
- 0.5,
13
- 0.5
14
- ],
15
- "image_processor_type": "MobileNetV2FeatureExtractor",
16
- "image_std": [
17
- 0.5,
18
- 0.5,
19
- 0.5
20
- ],
21
- "resample": 2,
22
  "rescale_factor": 0.00392156862745098,
23
  "size": {
24
  "shortest_edge": 256
25
  }
26
- }
 
4
  "width": 224
5
  },
6
  "do_center_crop": true,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": false,
9
  "do_rescale": true,
10
  "do_resize": true,
11
+ "feature_extractor_type": "ImageFeatureExtractor",
12
+ "resample": 3,
 
 
 
 
 
 
 
 
 
 
13
  "rescale_factor": 0.00392156862745098,
14
  "size": {
15
  "shortest_edge": 256
16
  }
17
+ }
quantize_config.json CHANGED
@@ -5,11 +5,14 @@
5
  "model": {
6
  "op_types": [
7
  "Add",
8
- "Clip",
9
  "Conv",
10
  "Flatten",
11
  "Gemm",
12
- "GlobalAveragePool"
 
 
 
 
13
  ],
14
  "weight_type": "QUInt8"
15
  }
@@ -22,11 +25,14 @@
22
  "model": {
23
  "op_types": [
24
  "Add",
25
- "Clip",
26
  "Conv",
27
  "Flatten",
28
  "Gemm",
29
- "GlobalAveragePool"
 
 
 
 
30
  ],
31
  "weight_type": "QInt8"
32
  }
@@ -39,11 +45,14 @@
39
  "model": {
40
  "op_types": [
41
  "Add",
42
- "Clip",
43
  "Conv",
44
  "Flatten",
45
  "Gemm",
46
- "GlobalAveragePool"
 
 
 
 
47
  ],
48
  "weight_type": "QUInt8"
49
  }
 
5
  "model": {
6
  "op_types": [
7
  "Add",
 
8
  "Conv",
9
  "Flatten",
10
  "Gemm",
11
+ "GlobalAveragePool",
12
+ "HardSigmoid",
13
+ "Mul",
14
+ "ReduceMean",
15
+ "Relu"
16
  ],
17
  "weight_type": "QUInt8"
18
  }
 
25
  "model": {
26
  "op_types": [
27
  "Add",
 
28
  "Conv",
29
  "Flatten",
30
  "Gemm",
31
+ "GlobalAveragePool",
32
+ "HardSigmoid",
33
+ "Mul",
34
+ "ReduceMean",
35
+ "Relu"
36
  ],
37
  "weight_type": "QInt8"
38
  }
 
45
  "model": {
46
  "op_types": [
47
  "Add",
 
48
  "Conv",
49
  "Flatten",
50
  "Gemm",
51
+ "GlobalAveragePool",
52
+ "HardSigmoid",
53
+ "Mul",
54
+ "ReduceMean",
55
+ "Relu"
56
  ],
57
  "weight_type": "QUInt8"
58
  }