update model.onnx
Browse files- config.json +7 -8
- model.onnx +3 -0
- preprocessor_config.json +1 -1
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
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 |
-
"
|
21 |
-
"
|
22 |
-
"
|
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 |
-
"
|
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": "
|
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,
|