Upload folder using huggingface_hub
Browse files- README.md +9 -0
- config.json +82 -0
- onnx/model.onnx +3 -0
- onnx/model_bnb4.onnx +3 -0
- onnx/model_fp16.onnx +3 -0
- onnx/model_int8.onnx +3 -0
- onnx/model_q4.onnx +3 -0
- onnx/model_q4f16.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- onnx/model_uint8.onnx +3 -0
- preprocessor_config.json +23 -0
- quantize_config.json +18 -0
README.md
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers.js
|
3 |
+
base_model:
|
4 |
+
- Kaludi/csgo-weapon-classification
|
5 |
+
---
|
6 |
+
|
7 |
+
# csgo-weapon-classification (ONNX)
|
8 |
+
|
9 |
+
This is an ONNX version of [Kaludi/csgo-weapon-classification](https://huggingface.co/Kaludi/csgo-weapon-classification). It was automatically converted and uploaded using [this space](https://huggingface.co/spaces/onnx-community/convert-to-onnx).
|
config.json
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_attn_implementation_autoset": true,
|
3 |
+
"_name_or_path": "Kaludi/csgo-weapon-classification",
|
4 |
+
"architectures": [
|
5 |
+
"SwinForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"depths": [
|
9 |
+
2,
|
10 |
+
2,
|
11 |
+
18,
|
12 |
+
2
|
13 |
+
],
|
14 |
+
"drop_path_rate": 0.1,
|
15 |
+
"embed_dim": 128,
|
16 |
+
"encoder_stride": 32,
|
17 |
+
"hidden_act": "gelu",
|
18 |
+
"hidden_dropout_prob": 0.0,
|
19 |
+
"hidden_size": 1024,
|
20 |
+
"id2label": {
|
21 |
+
"0": "AK-47",
|
22 |
+
"1": "AWP",
|
23 |
+
"2": "Famas",
|
24 |
+
"3": "Galil-AR",
|
25 |
+
"4": "Glock",
|
26 |
+
"5": "M4A1",
|
27 |
+
"6": "M4A4",
|
28 |
+
"7": "P-90",
|
29 |
+
"8": "SG-553",
|
30 |
+
"9": "UMP",
|
31 |
+
"10": "USP"
|
32 |
+
},
|
33 |
+
"image_size": 224,
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"label2id": {
|
36 |
+
"AK-47": "0",
|
37 |
+
"AWP": "1",
|
38 |
+
"Famas": "2",
|
39 |
+
"Galil-AR": "3",
|
40 |
+
"Glock": "4",
|
41 |
+
"M4A1": "5",
|
42 |
+
"M4A4": "6",
|
43 |
+
"P-90": "7",
|
44 |
+
"SG-553": "8",
|
45 |
+
"UMP": "9",
|
46 |
+
"USP": "10"
|
47 |
+
},
|
48 |
+
"layer_norm_eps": 1e-05,
|
49 |
+
"max_length": 128,
|
50 |
+
"mlp_ratio": 4.0,
|
51 |
+
"model_type": "swin",
|
52 |
+
"num_channels": 3,
|
53 |
+
"num_heads": [
|
54 |
+
4,
|
55 |
+
8,
|
56 |
+
16,
|
57 |
+
32
|
58 |
+
],
|
59 |
+
"num_layers": 4,
|
60 |
+
"out_features": [
|
61 |
+
"stage4"
|
62 |
+
],
|
63 |
+
"out_indices": [
|
64 |
+
4
|
65 |
+
],
|
66 |
+
"padding": "max_length",
|
67 |
+
"patch_size": 4,
|
68 |
+
"path_norm": true,
|
69 |
+
"problem_type": "single_label_classification",
|
70 |
+
"qkv_bias": true,
|
71 |
+
"stage_names": [
|
72 |
+
"stem",
|
73 |
+
"stage1",
|
74 |
+
"stage2",
|
75 |
+
"stage3",
|
76 |
+
"stage4"
|
77 |
+
],
|
78 |
+
"torch_dtype": "float32",
|
79 |
+
"transformers_version": "4.49.0",
|
80 |
+
"use_absolute_embeddings": false,
|
81 |
+
"window_size": 7
|
82 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:db5c1866cd6db853cf7d1f5d6508f7ac9ac9fd8c515c08d666018f1cb98a33b8
|
3 |
+
size 352020543
|
onnx/model_bnb4.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e0e2ad944f838759343c898b5c233f722fa8fa3a9a51b17d3b133a84bc59be8
|
3 |
+
size 54674229
|
onnx/model_fp16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0941c29b28430a0c9abeb31e35105f66bf13de249ab9a3dc48729eb12c4fa4a3
|
3 |
+
size 176833013
|
onnx/model_int8.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9d9db001dbd0aa4c74d3a5e54e3bfc95fb864ecaef9a7c45c983e5b93921093
|
3 |
+
size 93204523
|
onnx/model_q4.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af6018c559ee413af628a3ee1fe59d3fba04740d6c3fa05558efa27308f0b5b6
|
3 |
+
size 60079782
|
onnx/model_q4f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9372b6beaf793086608494e82bda560ad45913b5a848cd721e947b0bcbdf454e
|
3 |
+
size 52500573
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0f106fe984f5c81a82de443099a68ce07c11769afcdbef250d42e7b53cf94dc6
|
3 |
+
size 93204523
|
onnx/model_uint8.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0f106fe984f5c81a82de443099a68ce07c11769afcdbef250d42e7b53cf94dc6
|
3 |
+
size 93204523
|
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 |
+
}
|