hf-transformers-bot commited on
Commit
107b004
·
1 Parent(s): 48ab75b

Upload tiny models for FocalNetModel

Browse files
Files changed (3) hide show
  1. config.json +56 -0
  2. preprocessor_config.json +27 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "FocalNetModel"
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
+ "focal_levels": [
15
+ 2,
16
+ 2,
17
+ 2,
18
+ 2
19
+ ],
20
+ "focal_windows": [
21
+ 3,
22
+ 3,
23
+ 3,
24
+ 3
25
+ ],
26
+ "hidden_act": "gelu",
27
+ "hidden_dropout_prob": 0.0,
28
+ "image_size": 32,
29
+ "initializer_range": 0.02,
30
+ "layer_norm_eps": 1e-05,
31
+ "layerscale_value": 0.0001,
32
+ "mlp_ratio": 2.0,
33
+ "model_type": "focalnet",
34
+ "normalize_modulator": false,
35
+ "num_channels": 3,
36
+ "num_heads": [
37
+ 2,
38
+ 2,
39
+ 4
40
+ ],
41
+ "out_features": [
42
+ "stage1",
43
+ "stage2"
44
+ ],
45
+ "patch_size": 2,
46
+ "path_norm": true,
47
+ "qkv_bias": true,
48
+ "torch_dtype": "float32",
49
+ "transformers_version": "4.29.0.dev0",
50
+ "use_absolute_embeddings": false,
51
+ "use_conv_embed": false,
52
+ "use_layerscale": false,
53
+ "use_post_layernorm": false,
54
+ "use_post_layernorm_in_modulation": false,
55
+ "window_size": 2
56
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 32,
4
+ "width": 32
5
+ },
6
+ "do_center_crop": true,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.48145466,
13
+ 0.4578275,
14
+ 0.40821073
15
+ ],
16
+ "image_processor_type": "BitImageProcessor",
17
+ "image_std": [
18
+ 0.26862954,
19
+ 0.26130258,
20
+ 0.27577711
21
+ ],
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "shortest_edge": 32
26
+ }
27
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3da69de68821e8e235d797229d115573331c2c4fa80b3644f1750d469fb66770
3
+ size 301211