hf-transformers-bot commited on
Commit
6eda28a
1 Parent(s): 0f16db8

Upload tiny models for Swinv2ForImageClassification

Browse files
Files changed (3) hide show
  1. config.json +42 -0
  2. preprocessor_config.json +23 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Swinv2ForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "depths": [
7
+ 1,
8
+ 2,
9
+ 1
10
+ ],
11
+ "drop_path_rate": 0.1,
12
+ "embed_dim": 16,
13
+ "encoder_stride": 8,
14
+ "hidden_act": "gelu",
15
+ "hidden_dropout_prob": 0.0,
16
+ "hidden_size": 64,
17
+ "image_size": 32,
18
+ "initializer_range": 0.02,
19
+ "layer_norm_eps": 1e-05,
20
+ "mlp_ratio": 2.0,
21
+ "model_type": "swinv2",
22
+ "num_channels": 3,
23
+ "num_heads": [
24
+ 2,
25
+ 2,
26
+ 4
27
+ ],
28
+ "num_layers": 3,
29
+ "patch_size": 2,
30
+ "path_norm": true,
31
+ "pretrained_window_sizes": [
32
+ 0,
33
+ 0,
34
+ 0,
35
+ 0
36
+ ],
37
+ "qkv_bias": true,
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.28.0.dev0",
40
+ "use_absolute_embeddings": false,
41
+ "window_size": 2
42
+ }
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:e30eda749d49c60c42f71fa42587ed2552e20254f52d9c36d957513740a40512
3
+ size 329343