Vui Seng Chua commited on
Commit
474b84c
1 Parent(s): 7ecd3f2

this is a fork of hf-internal-testing/tiny-random-SwinModel with preprocessor config patched

Browse files
Files changed (4) hide show
  1. config.json +37 -0
  2. preprocessor_config.json +20 -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/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
+ "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,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 32
20
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1082c12d6828e5ff70a5fe7e5dcf67c3dc696c7c5c7826bc3b9a00a27c128765
3
+ size 283181
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ccf33389d2e63243d7f948ca704b1aab607e8b726e4af1f31f61116961ad5e39
3
+ size 368384