hf-transformers-bot commited on
Commit
5b7657a
1 Parent(s): 2ea6a12

Upload tiny models for DinatForImageClassification

Browse files
Files changed (3) hide show
  1. config.json +81 -0
  2. preprocessor_config.json +23 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DinatForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "depths": [
7
+ 1,
8
+ 2,
9
+ 1
10
+ ],
11
+ "dilations": [
12
+ [
13
+ 3
14
+ ],
15
+ [
16
+ 1,
17
+ 2
18
+ ],
19
+ [
20
+ 1
21
+ ]
22
+ ],
23
+ "drop_path_rate": 0.1,
24
+ "embed_dim": 16,
25
+ "hidden_act": "gelu",
26
+ "hidden_dropout_prob": 0.0,
27
+ "hidden_size": 64,
28
+ "id2label": {
29
+ "0": "LABEL_0",
30
+ "1": "LABEL_1",
31
+ "2": "LABEL_2",
32
+ "3": "LABEL_3",
33
+ "4": "LABEL_4",
34
+ "5": "LABEL_5",
35
+ "6": "LABEL_6",
36
+ "7": "LABEL_7",
37
+ "8": "LABEL_8",
38
+ "9": "LABEL_9"
39
+ },
40
+ "image_size": 64,
41
+ "initializer_range": 0.02,
42
+ "kernel_size": 3,
43
+ "label2id": {
44
+ "LABEL_0": 0,
45
+ "LABEL_1": 1,
46
+ "LABEL_2": 2,
47
+ "LABEL_3": 3,
48
+ "LABEL_4": 4,
49
+ "LABEL_5": 5,
50
+ "LABEL_6": 6,
51
+ "LABEL_7": 7,
52
+ "LABEL_8": 8,
53
+ "LABEL_9": 9
54
+ },
55
+ "layer_norm_eps": 1e-05,
56
+ "layer_scale_init_value": 0.0,
57
+ "mlp_ratio": 2.0,
58
+ "model_type": "dinat",
59
+ "num_channels": 3,
60
+ "num_heads": [
61
+ 2,
62
+ 4,
63
+ 8
64
+ ],
65
+ "num_layers": 3,
66
+ "out_features": [
67
+ "stage1",
68
+ "stage2"
69
+ ],
70
+ "patch_norm": true,
71
+ "patch_size": 4,
72
+ "qkv_bias": true,
73
+ "stage_names": [
74
+ "stem",
75
+ "stage1",
76
+ "stage2",
77
+ "stage3"
78
+ ],
79
+ "torch_dtype": "float32",
80
+ "transformers_version": "4.28.0.dev0"
81
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": 64,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "ViTImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 64,
21
+ "width": 64
22
+ }
23
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c3b9f082a0be7caa502e4dc0c77b00729eff349c48039e173cb1e9e84ed66b8
3
+ size 341997