LPX55 commited on
Commit
04b323d
·
verified ·
1 Parent(s): e8e29ac

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers.js
3
+ base_model:
4
+ - haywoodsloan/ai-image-detector-deploy
5
+ ---
6
+
7
+ # ai-image-detector-deploy (ONNX)
8
+
9
+ This is an ONNX version of [haywoodsloan/ai-image-detector-deploy](https://huggingface.co/haywoodsloan/ai-image-detector-deploy). It was automatically converted and uploaded using [this space](https://huggingface.co/spaces/onnx-community/convert-to-onnx).
config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "haywoodsloan/ai-image-detector-deploy",
4
+ "_num_labels": 2,
5
+ "architectures": [
6
+ "Swinv2ForImageClassification"
7
+ ],
8
+ "attention_probs_dropout_prob": 0.0,
9
+ "depths": [
10
+ 2,
11
+ 2,
12
+ 18,
13
+ 2
14
+ ],
15
+ "drop_path_rate": 0.1,
16
+ "embed_dim": 192,
17
+ "encoder_stride": 32,
18
+ "hidden_act": "gelu",
19
+ "hidden_dropout_prob": 0.0,
20
+ "hidden_size": 1536,
21
+ "id2label": {
22
+ "0": "artificial",
23
+ "1": "real"
24
+ },
25
+ "image_size": 256,
26
+ "initializer_range": 0.02,
27
+ "label2id": {
28
+ "artificial": 0,
29
+ "real": 1
30
+ },
31
+ "layer_norm_eps": 1e-05,
32
+ "mlp_ratio": 4.0,
33
+ "model_type": "swinv2",
34
+ "num_channels": 3,
35
+ "num_heads": [
36
+ 6,
37
+ 12,
38
+ 24,
39
+ 48
40
+ ],
41
+ "num_layers": 4,
42
+ "out_features": [
43
+ "stage4"
44
+ ],
45
+ "out_indices": [
46
+ 4
47
+ ],
48
+ "patch_size": 4,
49
+ "path_norm": true,
50
+ "pretrained_window_sizes": [
51
+ 12,
52
+ 12,
53
+ 12,
54
+ 6
55
+ ],
56
+ "problem_type": "single_label_classification",
57
+ "qkv_bias": true,
58
+ "stage_names": [
59
+ "stem",
60
+ "stage1",
61
+ "stage2",
62
+ "stage3",
63
+ "stage4"
64
+ ],
65
+ "torch_dtype": "float32",
66
+ "transformers_version": "4.49.0",
67
+ "use_absolute_embeddings": false,
68
+ "window_size": 16
69
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2346d0e9f56d2d1593ba76758988b4e8da4e65a5bc65e7c3cf9798a86c9a2bf
3
+ size 904854552
onnx/model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efb812db6ca1de5c87620a835e0349dff668e4d4bfd2da585c577ecd80801fad
3
+ size 235796020
onnx/model_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40809e0144cf3eb28bcc062710245266a689fb6d6c52f94c3876c04514394fef
3
+ size 452965132
onnx/model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54b5dbfd92df2565ce806c662e765982406316cd2a8f349427e628bd74d6bf45
3
+ size 321926825
onnx/model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de5d6c400fa00d00429b8cbdcc18e5b51e4846d371780ac1a414d87a16241c49
3
+ size 247960061
onnx/model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22b794c0555706379d80871c9805fd59003e2125e1e15d627b782e5dce383ead
3
+ size 173189489
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ecf6b2bb01362d913ea6d8ebcb3d8a8544b41014e663b53b9b89f868401c6f7b
3
+ size 321926825
onnx/model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ecf6b2bb01362d913ea6d8ebcb3d8a8544b41014e663b53b9b89f868401c6f7b
3
+ size 321926825
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_processor_type": "ViTFeatureExtractor",
12
+ "image_std": [
13
+ 0.229,
14
+ 0.224,
15
+ 0.225
16
+ ],
17
+ "resample": 3,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 256,
21
+ "width": 256
22
+ }
23
+ }
quantize_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "modes": [
3
+ "fp16",
4
+ "q8",
5
+ "int8",
6
+ "uint8",
7
+ "q4",
8
+ "q4f16",
9
+ "bnb4"
10
+ ],
11
+ "per_channel": true,
12
+ "reduce_range": true,
13
+ "block_size": null,
14
+ "is_symmetric": true,
15
+ "accuracy_level": null,
16
+ "quant_type": 1,
17
+ "op_block_list": null
18
+ }