jiechau commited on
Commit
d4ed107
1 Parent(s): 48c21d7

update model.onnx

Browse files
Files changed (3) hide show
  1. config.json +7 -8
  2. model.onnx +3 -0
  3. preprocessor_config.json +1 -1
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "/home/jiechau/model/adult-content-identify-image",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
@@ -10,16 +10,16 @@
10
  "hidden_size": 768,
11
  "id2label": {
12
  "0": "unknown",
13
- "1": "adult_成人商品",
14
- "2": "regular_一般商品"
15
  },
16
  "image_size": 224,
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
- "unknown": 0,
21
- "adult_成人商品": 1,
22
- "regular_一般商品": 2
23
  },
24
  "layer_norm_eps": 1e-12,
25
  "model_type": "vit",
@@ -29,6 +29,5 @@
29
  "patch_size": 16,
30
  "problem_type": "single_label_classification",
31
  "qkv_bias": true,
32
- "torch_dtype": "float32",
33
- "transformers_version": "4.38.2"
34
  }
 
1
  {
2
+ "_name_or_path": "jiechau/adult-content-identify-image",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
10
  "hidden_size": 768,
11
  "id2label": {
12
  "0": "unknown",
13
+ "1": "adult_\u6210\u4eba\u5546\u54c1",
14
+ "2": "regular_\u4e00\u822c\u5546\u54c1"
15
  },
16
  "image_size": 224,
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
+ "adult_\u6210\u4eba\u5546\u54c1": 1,
21
+ "regular_\u4e00\u822c\u5546\u54c1": 2,
22
+ "unknown": 0
23
  },
24
  "layer_norm_eps": 1e-12,
25
  "model_type": "vit",
 
29
  "patch_size": 16,
30
  "problem_type": "single_label_classification",
31
  "qkv_bias": true,
32
+ "transformers_version": "4.37.1"
 
33
  }
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54538f61b79824c926af67ce0939c60d02ca7d69ccd42c7e479b492c6ff4d2f2
3
+ size 343466972
preprocessor_config.json CHANGED
@@ -7,7 +7,7 @@
7
  0.5,
8
  0.5
9
  ],
10
- "image_processor_type": "ViTImageProcessor",
11
  "image_std": [
12
  0.5,
13
  0.5,
 
7
  0.5,
8
  0.5
9
  ],
10
+ "image_processor_type": "ViTFeatureExtractor",
11
  "image_std": [
12
  0.5,
13
  0.5,