hf-transformers-bot commited on
Commit
eb8c580
·
1 Parent(s): fe779c2

Upload tiny models for FocalNetBackbone

Browse files
Files changed (3) hide show
  1. config.json +71 -0
  2. preprocessor_config.json +27 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "FocalNetBackbone"
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
+ "hidden_sizes": [
29
+ 32,
30
+ 64,
31
+ 128
32
+ ],
33
+ "image_size": 32,
34
+ "initializer_range": 0.02,
35
+ "layer_norm_eps": 1e-05,
36
+ "layerscale_value": 0.0001,
37
+ "mlp_ratio": 2.0,
38
+ "model_type": "focalnet",
39
+ "normalize_modulator": false,
40
+ "num_channels": 3,
41
+ "num_heads": [
42
+ 2,
43
+ 2,
44
+ 4
45
+ ],
46
+ "out_features": [
47
+ "stage1",
48
+ "stage2"
49
+ ],
50
+ "out_indices": [
51
+ 1,
52
+ 2
53
+ ],
54
+ "patch_size": 2,
55
+ "path_norm": true,
56
+ "qkv_bias": true,
57
+ "stage_names": [
58
+ "stem",
59
+ "stage1",
60
+ "stage2",
61
+ "stage3"
62
+ ],
63
+ "torch_dtype": "float32",
64
+ "transformers_version": "4.29.0.dev0",
65
+ "use_absolute_embeddings": false,
66
+ "use_conv_embed": false,
67
+ "use_layerscale": false,
68
+ "use_post_layernorm": false,
69
+ "use_post_layernorm_in_modulation": false,
70
+ "window_size": 2
71
+ }
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:6bae8268a4042ab85d00b788175de89f72fbad79c75d19adf304ee1b6afd45b7
3
+ size 301915