LPX55 commited on
Commit
38b6f14
·
verified ·
1 Parent(s): 17418ae

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers.js
3
+ base_model:
4
+ - Organika/sdxl-detector
5
+ ---
6
+
7
+ # sdxl-detector (ONNX)
8
+
9
+ This is an ONNX version of [Organika/sdxl-detector](https://huggingface.co/Organika/sdxl-detector). It was automatically converted and uploaded using [this space](https://huggingface.co/spaces/onnx-community/convert-to-onnx).
config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "Organika/sdxl-detector",
4
+ "_num_labels": 2,
5
+ "architectures": [
6
+ "SwinForImageClassification"
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": 128,
17
+ "encoder_stride": 32,
18
+ "hidden_act": "gelu",
19
+ "hidden_dropout_prob": 0.0,
20
+ "hidden_size": 1024,
21
+ "id2label": {
22
+ "0": "artificial",
23
+ "1": "human"
24
+ },
25
+ "image_size": 224,
26
+ "initializer_range": 0.02,
27
+ "label2id": {
28
+ "artificial": 0,
29
+ "human": 1
30
+ },
31
+ "layer_norm_eps": 1e-05,
32
+ "max_length": 128,
33
+ "mlp_ratio": 4.0,
34
+ "model_type": "swin",
35
+ "num_channels": 3,
36
+ "num_heads": [
37
+ 4,
38
+ 8,
39
+ 16,
40
+ 32
41
+ ],
42
+ "num_layers": 4,
43
+ "out_features": [
44
+ "stage4"
45
+ ],
46
+ "out_indices": [
47
+ 4
48
+ ],
49
+ "padding": "max_length",
50
+ "patch_size": 4,
51
+ "path_norm": true,
52
+ "problem_type": "single_label_classification",
53
+ "qkv_bias": true,
54
+ "stage_names": [
55
+ "stem",
56
+ "stage1",
57
+ "stage2",
58
+ "stage3",
59
+ "stage4"
60
+ ],
61
+ "torch_dtype": "float32",
62
+ "transformers_version": "4.49.0",
63
+ "use_absolute_embeddings": false,
64
+ "window_size": 7
65
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b78ff8074d182e8df44db157ba5ea58c108ae5f82bd8d8fdf6f14efbb4a695d
3
+ size 351983641
onnx/model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a3d8b87dd79a2e0cf65e253913c36efc13a6869e14a972ae88642d5f7767a77
3
+ size 54637327
onnx/model_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3853db599db8940bd6727dd2ca6945e03cf5a3b94592a8e715dc9b5849a2516b
3
+ size 176814561
onnx/model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a302ad62cd79baf7c6cf0e51646e3d18ff401702205a650e32c9316c9d8fa7b6
3
+ size 93195226
onnx/model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7df3ab2955fc9e97fa6e8e98e769ff0039806a2fa56250eaeaa1dc3e8d86c5a1
3
+ size 60042880
onnx/model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2799aeaaa35bc71eaaa55e1318015253f077251fc949e9aaf024b7cae8cb98da
3
+ size 52482121
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9f181ef4a4bcc4eb7addec761698a1f9e99281f0342cae54a8550dcfbab0f8c
3
+ size 93195226
onnx/model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9f181ef4a4bcc4eb7addec761698a1f9e99281f0342cae54a8550dcfbab0f8c
3
+ size 93195226
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": 224,
21
+ "width": 224
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
+ }