hf-transformers-bot commited on
Commit
36489b1
·
verified ·
1 Parent(s): ea8e6b5

Update tiny models for Swin2SRForImageSuperResolution

Browse files
Files changed (3) hide show
  1. config.json +39 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +15 -0
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Swin2SRForImageSuperResolution"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "depths": [
7
+ 1,
8
+ 2,
9
+ 1
10
+ ],
11
+ "drop_path_rate": 0.1,
12
+ "dtype": "float32",
13
+ "embed_dim": 16,
14
+ "hidden_act": "gelu",
15
+ "hidden_dropout_prob": 0.0,
16
+ "image_size": 32,
17
+ "img_range": 1.0,
18
+ "initializer_range": 0.02,
19
+ "layer_norm_eps": 1e-05,
20
+ "mlp_ratio": 2.0,
21
+ "model_type": "swin2sr",
22
+ "num_channels": 3,
23
+ "num_channels_out": 1,
24
+ "num_heads": [
25
+ 2,
26
+ 2,
27
+ 4
28
+ ],
29
+ "num_layers": 3,
30
+ "patch_size": 1,
31
+ "path_norm": true,
32
+ "qkv_bias": true,
33
+ "resi_connection": "1conv",
34
+ "transformers_version": "5.16.0.dev0",
35
+ "upsampler": "pixelshuffle",
36
+ "upscale": 2,
37
+ "use_absolute_embeddings": false,
38
+ "window_size": 2
39
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59e30d0e7d922422b8710de1bd1d58bd12e394bc955c018999465d0f5a6b55bd
3
+ size 766676
preprocessor_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 32,
4
+ "width": 32
5
+ },
6
+ "do_pad": true,
7
+ "do_rescale": true,
8
+ "image_processor_type": "Swin2SRImageProcessor",
9
+ "rescale_factor": 0.00392156862745098,
10
+ "size": {
11
+ "height": 32,
12
+ "width": 32
13
+ },
14
+ "size_divisor": 8
15
+ }