ydshieh HF Staff commited on
Commit
e3c2e80
·
1 Parent(s): 4b9a412

Upload tiny models for SwinForImageClassification

Browse files
Files changed (4) hide show
  1. config.json +37 -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,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "temp/dummy/swin/SwinForImageClassification",
3
+ "architectures": [
4
+ "SwinForImageClassification"
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
+ "patch_size": 2,
31
+ "path_norm": true,
32
+ "qkv_bias": true,
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.25.0.dev0",
35
+ "use_absolute_embeddings": false,
36
+ "window_size": 2
37
+ }
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:d675e41ce10806cc7265550feaed9fbfc573ea17e9f90e5ff5c9754a065cc2ee
3
+ size 284723
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3aadcf9ff70d00ee5efddd0ebca08466a4ae429bfe566c1272115826c75ebf22
3
+ size 378224