Upload folder using huggingface_hub
Browse files- config.json +45 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- preprocessor_config.json +7 -0
- quantize_config.json +49 -0
config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "caidas/swin2SR-compressed-sr-x4-48",
|
3 |
+
"architectures": [
|
4 |
+
"Swin2SRForImageSuperResolution"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"depths": [
|
8 |
+
6,
|
9 |
+
6,
|
10 |
+
6,
|
11 |
+
6,
|
12 |
+
6,
|
13 |
+
6
|
14 |
+
],
|
15 |
+
"drop_path_rate": 0.1,
|
16 |
+
"embed_dim": 180,
|
17 |
+
"hidden_act": "gelu",
|
18 |
+
"hidden_dropout_prob": 0.0,
|
19 |
+
"image_size": 48,
|
20 |
+
"img_range": 1.0,
|
21 |
+
"initializer_range": 0.02,
|
22 |
+
"layer_norm_eps": 1e-05,
|
23 |
+
"mlp_ratio": 2.0,
|
24 |
+
"model_type": "swin2sr",
|
25 |
+
"num_channels": 3,
|
26 |
+
"num_channels_out": 3,
|
27 |
+
"num_heads": [
|
28 |
+
6,
|
29 |
+
6,
|
30 |
+
6,
|
31 |
+
6,
|
32 |
+
6,
|
33 |
+
6
|
34 |
+
],
|
35 |
+
"num_layers": 6,
|
36 |
+
"patch_size": 1,
|
37 |
+
"path_norm": true,
|
38 |
+
"qkv_bias": true,
|
39 |
+
"resi_connection": "1conv",
|
40 |
+
"transformers_version": "4.36.0.dev0",
|
41 |
+
"upsampler": "pixelshuffle_aux",
|
42 |
+
"upscale": 4,
|
43 |
+
"use_absolute_embeddings": false,
|
44 |
+
"window_size": 8
|
45 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2038700d530bb756a29552d7c8ddbd4a8f734df6cc43162ed543360a7aeb02f7
|
3 |
+
size 55046351
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9a739b9cfce4963f989dc54977dea168fea2c35a86a26e891b87e44653c93bf
|
3 |
+
size 21639405
|
preprocessor_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_pad": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"image_processor_type": "Swin2SRImageProcessor",
|
5 |
+
"pad_size": 8,
|
6 |
+
"rescale_factor": 0.00392156862745098
|
7 |
+
}
|
quantize_config.json
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Mul",
|
8 |
+
"Cast",
|
9 |
+
"Add",
|
10 |
+
"Expand",
|
11 |
+
"Resize",
|
12 |
+
"Sqrt",
|
13 |
+
"Pad",
|
14 |
+
"Sub",
|
15 |
+
"Mod",
|
16 |
+
"Where",
|
17 |
+
"Transpose",
|
18 |
+
"Unsqueeze",
|
19 |
+
"Clip",
|
20 |
+
"Conv",
|
21 |
+
"Exp",
|
22 |
+
"Reshape",
|
23 |
+
"Sigmoid",
|
24 |
+
"Erf",
|
25 |
+
"Abs",
|
26 |
+
"Relu",
|
27 |
+
"ScatterND",
|
28 |
+
"MatMul",
|
29 |
+
"Softmax",
|
30 |
+
"Concat",
|
31 |
+
"LeakyRelu",
|
32 |
+
"DepthToSpace",
|
33 |
+
"Not",
|
34 |
+
"Equal",
|
35 |
+
"Constant",
|
36 |
+
"Slice",
|
37 |
+
"ReduceSum",
|
38 |
+
"Shape",
|
39 |
+
"Gather",
|
40 |
+
"ReduceMean",
|
41 |
+
"Div",
|
42 |
+
"Range",
|
43 |
+
"Pow",
|
44 |
+
"ConstantOfShape"
|
45 |
+
],
|
46 |
+
"weight_type": "QUInt8"
|
47 |
+
}
|
48 |
+
}
|
49 |
+
}
|