h3110Fr13nd
commited on
Commit
•
806e732
1
Parent(s):
66d6986
swin2sr realworld x4 onnx model weights converted from optimum cli
Browse files- config.json +45 -0
- model.onnx +3 -0
- preprocessor_config.json +7 -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.44.2",
|
41 |
+
"upsampler": "nearest+conv",
|
42 |
+
"upscale": 4,
|
43 |
+
"use_absolute_embeddings": false,
|
44 |
+
"window_size": 8
|
45 |
+
}
|
model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af9c2c44cd36d7f5bc06e4ad833ec9a5159f15b91f8f57922a948f9adf3f96a8
|
3 |
+
size 53586374
|
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 |
+
}
|