Commit
•
c3abf72
0
Parent(s):
Duplicate from caidas/swin2SR-classical-sr-x2-64
Browse filesCo-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>
- .gitattributes +34 -0
- README.md +20 -0
- config.json +44 -0
- preprocessor_config.json +7 -0
- pytorch_model.bin +3 -0
.gitattributes
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- vision
|
5 |
+
- image-to-image
|
6 |
+
inference: false
|
7 |
+
---
|
8 |
+
|
9 |
+
# Swin2SR model (image super-resolution)
|
10 |
+
|
11 |
+
Swin2SR model that upscales images x2. It was introduced in the paper [Swin2SR: SwinV2 Transformer for Compressed Image Super-Resolution and Restoration](https://arxiv.org/abs/2209.11345)
|
12 |
+
by Conde et al. and first released in [this repository](https://github.com/mv-lab/swin2sr).
|
13 |
+
|
14 |
+
# Intended use cases
|
15 |
+
|
16 |
+
This model is intended for image super resolution.
|
17 |
+
|
18 |
+
# Usage
|
19 |
+
|
20 |
+
Refer to the [documentation](https://huggingface.co/docs/transformers/main/en/model_doc/swin2sr#transformers.Swin2SRForImageSuperResolution.forward.example).
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"Swin2SRForImageSuperResolution"
|
4 |
+
],
|
5 |
+
"attention_probs_dropout_prob": 0.0,
|
6 |
+
"depths": [
|
7 |
+
6,
|
8 |
+
6,
|
9 |
+
6,
|
10 |
+
6,
|
11 |
+
6,
|
12 |
+
6
|
13 |
+
],
|
14 |
+
"drop_path_rate": 0.1,
|
15 |
+
"embed_dim": 180,
|
16 |
+
"hidden_act": "gelu",
|
17 |
+
"hidden_dropout_prob": 0.0,
|
18 |
+
"image_size": 64,
|
19 |
+
"img_range": 1.0,
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"layer_norm_eps": 1e-05,
|
22 |
+
"mlp_ratio": 2.0,
|
23 |
+
"model_type": "swin2sr",
|
24 |
+
"num_channels": 3,
|
25 |
+
"num_heads": [
|
26 |
+
6,
|
27 |
+
6,
|
28 |
+
6,
|
29 |
+
6,
|
30 |
+
6,
|
31 |
+
6
|
32 |
+
],
|
33 |
+
"num_layers": 6,
|
34 |
+
"patch_size": 1,
|
35 |
+
"path_norm": true,
|
36 |
+
"qkv_bias": true,
|
37 |
+
"resi_connection": "1conv",
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.26.0.dev0",
|
40 |
+
"upsampler": "pixelshuffle",
|
41 |
+
"upscale": 2,
|
42 |
+
"use_absolute_embeddings": false,
|
43 |
+
"window_size": 8
|
44 |
+
}
|
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 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:adf54cd2539bec31262ce6d6f97fea5079fcb8388bc7eaff0082c0dc0c87259c
|
3 |
+
size 48606685
|