Xenova HF staff commited on
Commit
94e5fd5
·
1 Parent(s): f65a020

Upload folder using huggingface_hub

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