hf-transformers-bot commited on
Commit
44cbb6e
·
verified ·
1 Parent(s): 6d4f18f

Update tiny models for LevitForImageClassification

Browse files
Files changed (3) hide show
  1. config.json +67 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +27 -0
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LevitForImageClassification"
4
+ ],
5
+ "attention_ratio": [
6
+ 2,
7
+ 2,
8
+ 2
9
+ ],
10
+ "depths": [
11
+ 2,
12
+ 3,
13
+ 4
14
+ ],
15
+ "down_ops": [
16
+ [
17
+ "Subsample",
18
+ 8,
19
+ 2,
20
+ 4,
21
+ 2,
22
+ 2
23
+ ],
24
+ [
25
+ "Subsample",
26
+ 8,
27
+ 4,
28
+ 4,
29
+ 2,
30
+ 2
31
+ ],
32
+ [
33
+ ""
34
+ ]
35
+ ],
36
+ "drop_path_rate": 0,
37
+ "dtype": "float32",
38
+ "hidden_sizes": [
39
+ 16,
40
+ 32,
41
+ 48
42
+ ],
43
+ "image_size": 64,
44
+ "initializer_range": 0.02,
45
+ "kernel_size": 3,
46
+ "key_dim": [
47
+ 8,
48
+ 8,
49
+ 8
50
+ ],
51
+ "mlp_ratio": [
52
+ 2,
53
+ 2,
54
+ 2
55
+ ],
56
+ "model_type": "levit",
57
+ "num_attention_heads": [
58
+ 1,
59
+ 2,
60
+ 3
61
+ ],
62
+ "num_channels": 3,
63
+ "padding": 1,
64
+ "patch_size": 16,
65
+ "stride": 2,
66
+ "transformers_version": "5.16.0.dev0"
67
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e10327237251f6f3fe45bcd34b097645cdb61c05cc09e3e36f6a85d2ec28a90a
3
+ size 565704
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "longest_edge": 64,
4
+ "shortest_edge": 64
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": "LevitImageProcessor",
16
+ "image_std": [
17
+ 0.229,
18
+ 0.224,
19
+ 0.225
20
+ ],
21
+ "resample": 3,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "longest_edge": 64,
25
+ "shortest_edge": 64
26
+ }
27
+ }