hf-transformers-bot commited on
Commit
cd1945d
·
verified ·
1 Parent(s): 0f17300

Update tiny models for HieraForImageClassification

Browse files
Files changed (3) hide show
  1. config.json +79 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +40 -0
config.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "HieraForImageClassification"
4
+ ],
5
+ "decoder_depth": 1,
6
+ "decoder_hidden_size": 2,
7
+ "decoder_num_heads": 1,
8
+ "depths": [
9
+ 1,
10
+ 1,
11
+ 1,
12
+ 1
13
+ ],
14
+ "drop_path_rate": 0.0,
15
+ "dtype": "float32",
16
+ "embed_dim": 8,
17
+ "embed_dim_multiplier": 2.0,
18
+ "hidden_act": "gelu",
19
+ "hidden_size": 64,
20
+ "image_size": [
21
+ 64,
22
+ 64
23
+ ],
24
+ "initializer_range": 0.02,
25
+ "layer_norm_eps": 1e-06,
26
+ "layer_norm_init": 1.0,
27
+ "mask_ratio": 0.6,
28
+ "masked_unit_attention": [
29
+ true,
30
+ true,
31
+ false,
32
+ false
33
+ ],
34
+ "masked_unit_size": [
35
+ 8,
36
+ 8
37
+ ],
38
+ "mlp_ratio": 1.0,
39
+ "model_type": "hiera",
40
+ "normalize_pixel_loss": true,
41
+ "num_channels": 3,
42
+ "num_heads": [
43
+ 1,
44
+ 1,
45
+ 1,
46
+ 1
47
+ ],
48
+ "num_query_pool": 3,
49
+ "out_features": [
50
+ "stage4"
51
+ ],
52
+ "out_indices": [
53
+ 4
54
+ ],
55
+ "patch_padding": [
56
+ 3,
57
+ 3
58
+ ],
59
+ "patch_size": [
60
+ 7,
61
+ 7
62
+ ],
63
+ "patch_stride": [
64
+ 4,
65
+ 4
66
+ ],
67
+ "query_stride": [
68
+ 2,
69
+ 2
70
+ ],
71
+ "stage_names": [
72
+ "stem",
73
+ "stage1",
74
+ "stage2",
75
+ "stage3",
76
+ "stage4"
77
+ ],
78
+ "transformers_version": "5.16.0.dev0"
79
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2842e0669988f9de3d9af62c2c101e73878de8141078e2362210058b8da8687c
3
+ size 134416
preprocessor_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "longest_edge": [
4
+ 64,
5
+ 64
6
+ ],
7
+ "shortest_edge": [
8
+ 64,
9
+ 64
10
+ ]
11
+ },
12
+ "do_center_crop": true,
13
+ "do_convert_rgb": true,
14
+ "do_normalize": true,
15
+ "do_rescale": true,
16
+ "do_resize": true,
17
+ "image_mean": [
18
+ 0.48145466,
19
+ 0.4578275,
20
+ 0.40821073
21
+ ],
22
+ "image_processor_type": "BitImageProcessor",
23
+ "image_std": [
24
+ 0.26862954,
25
+ 0.26130258,
26
+ 0.27577711
27
+ ],
28
+ "resample": 3,
29
+ "rescale_factor": 0.00392156862745098,
30
+ "size": {
31
+ "longest_edge": [
32
+ 64,
33
+ 64
34
+ ],
35
+ "shortest_edge": [
36
+ 64,
37
+ 64
38
+ ]
39
+ }
40
+ }