hf-transformers-bot commited on
Commit
b211042
1 Parent(s): c553160

Upload tiny models for EfficientFormerForImageClassificationWithTeacher

Browse files
Files changed (3) hide show
  1. config.json +53 -0
  2. preprocessor_config.json +27 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "EfficientFormerForImageClassificationWithTeacher"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "attention_ratio": 4,
7
+ "depths": [
8
+ 3,
9
+ 2,
10
+ 6,
11
+ 4
12
+ ],
13
+ "dim": 448,
14
+ "distillation": true,
15
+ "downsample_pad": 1,
16
+ "downsample_patch_size": 3,
17
+ "downsample_stride": 2,
18
+ "downsamples": [
19
+ true,
20
+ true,
21
+ true,
22
+ true
23
+ ],
24
+ "drop_path_rate": 0.0,
25
+ "encoder_stride": 2,
26
+ "hidden_act": "gelu",
27
+ "hidden_dropout_prob": 0.1,
28
+ "hidden_size": 448,
29
+ "hidden_sizes": [
30
+ 48,
31
+ 96,
32
+ 224,
33
+ 448
34
+ ],
35
+ "image_size": 224,
36
+ "initializer_range": 0.02,
37
+ "intermediate_size": 37,
38
+ "key_dim": 32,
39
+ "layer_norm_eps": 1e-12,
40
+ "layer_scale_init_value": 1e-05,
41
+ "mlp_expansion_ratio": 4,
42
+ "model_type": "efficientformer",
43
+ "num_attention_heads": 8,
44
+ "num_channels": 3,
45
+ "num_hidden_layers": 7,
46
+ "num_meta3d_blocks": 1,
47
+ "patch_size": 2,
48
+ "pool_size": 3,
49
+ "resolution": 7,
50
+ "torch_dtype": "float32",
51
+ "transformers_version": "4.28.0.dev0",
52
+ "use_layer_scale": true
53
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": true,
7
+ "do_normalize": true,
8
+ "do_rescale": true,
9
+ "do_resize": true,
10
+ "image_mean": [
11
+ 0.485,
12
+ 0.456,
13
+ 0.406
14
+ ],
15
+ "image_processor_type": "EfficientFormerImageProcessor",
16
+ "image_std": [
17
+ 0.229,
18
+ 0.224,
19
+ 0.225
20
+ ],
21
+ "resample": 3,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "height": 224,
25
+ "width": 224
26
+ }
27
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4345ac68cf8ede6f03a3f525893bc47272c580717648440262d89d4e68eb6a05
3
+ size 45823857