hf-transformers-bot commited on
Commit
d443a56
1 Parent(s): c087cbe

Upload tiny models for SwinModel

Browse files
Files changed (4) hide show
  1. config.json +47 -0
  2. preprocessor_config.json +23 -0
  3. pytorch_model.bin +3 -0
  4. tf_model.h5 +3 -0
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "tiny_models/swin/SwinModel",
3
+ "architectures": [
4
+ "SwinModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 1,
9
+ 2,
10
+ 1
11
+ ],
12
+ "drop_path_rate": 0.1,
13
+ "embed_dim": 16,
14
+ "encoder_stride": 8,
15
+ "hidden_act": "gelu",
16
+ "hidden_dropout_prob": 0.0,
17
+ "hidden_size": 64,
18
+ "image_size": 32,
19
+ "initializer_range": 0.02,
20
+ "layer_norm_eps": 1e-05,
21
+ "mlp_ratio": 2.0,
22
+ "model_type": "swin",
23
+ "num_channels": 3,
24
+ "num_heads": [
25
+ 2,
26
+ 2,
27
+ 4
28
+ ],
29
+ "num_layers": 3,
30
+ "out_features": [
31
+ "stage1",
32
+ "stage2"
33
+ ],
34
+ "patch_size": 2,
35
+ "path_norm": true,
36
+ "qkv_bias": true,
37
+ "stage_names": [
38
+ "stem",
39
+ "stage1",
40
+ "stage2",
41
+ "stage3"
42
+ ],
43
+ "torch_dtype": "float32",
44
+ "transformers_version": "4.28.0.dev0",
45
+ "use_absolute_embeddings": false,
46
+ "window_size": 2
47
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": 32,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "ViTImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 32,
21
+ "width": 32
22
+ }
23
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2a09f495ef0b830b5553a37337c69f0b224fad50d8eeb8cb8881c1fc5913f07
3
+ size 283181
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:851d8f3c8f1fb97ed8870c08e2768e9e566b2380ada9659f690b7c42222ce463
3
+ size 368384