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 +48 -0
config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "caidas/swin2SR-realworld-sr-x4-64-bsrgan-psnr",
|
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": 64,
|
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": "nearest+conv",
|
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:0030c4316e8ad6acaec666371cdafecc868bb00aa0b81f776661bb2be03442cd
|
3 |
+
size 54282618
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e9bae06e1c280a1f2f5ab093312ee1ec39186afc8912259bb9e3de838f85fb8
|
3 |
+
size 21438622
|
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,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Slice",
|
8 |
+
"Exp",
|
9 |
+
"Unsqueeze",
|
10 |
+
"Add",
|
11 |
+
"LeakyRelu",
|
12 |
+
"Equal",
|
13 |
+
"Concat",
|
14 |
+
"Constant",
|
15 |
+
"Where",
|
16 |
+
"MatMul",
|
17 |
+
"Shape",
|
18 |
+
"Conv",
|
19 |
+
"Clip",
|
20 |
+
"Relu",
|
21 |
+
"Sqrt",
|
22 |
+
"Range",
|
23 |
+
"Not",
|
24 |
+
"ScatterND",
|
25 |
+
"Abs",
|
26 |
+
"Mod",
|
27 |
+
"Pad",
|
28 |
+
"Pow",
|
29 |
+
"Mul",
|
30 |
+
"ReduceMean",
|
31 |
+
"Reshape",
|
32 |
+
"Expand",
|
33 |
+
"ConstantOfShape",
|
34 |
+
"Sub",
|
35 |
+
"ReduceSum",
|
36 |
+
"Div",
|
37 |
+
"Resize",
|
38 |
+
"Transpose",
|
39 |
+
"Erf",
|
40 |
+
"Softmax",
|
41 |
+
"Gather",
|
42 |
+
"Cast",
|
43 |
+
"Sigmoid"
|
44 |
+
],
|
45 |
+
"weight_type": "QUInt8"
|
46 |
+
}
|
47 |
+
}
|
48 |
+
}
|