hf-transformers-bot
commited on
Commit
•
bae01e9
1
Parent(s):
2d9fc3f
Upload tiny models for DeiTModel
Browse files- config.json +23 -0
- preprocessor_config.json +27 -0
- pytorch_model.bin +3 -0
- tf_model.h5 +3 -0
config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "tiny_models/deit/DeiTModel",
|
3 |
+
"architectures": [
|
4 |
+
"DeiTModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"encoder_stride": 2,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 32,
|
11 |
+
"image_size": 30,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 37,
|
14 |
+
"layer_norm_eps": 1e-12,
|
15 |
+
"model_type": "deit",
|
16 |
+
"num_attention_heads": 4,
|
17 |
+
"num_channels": 3,
|
18 |
+
"num_hidden_layers": 5,
|
19 |
+
"patch_size": 2,
|
20 |
+
"qkv_bias": true,
|
21 |
+
"torch_dtype": "float32",
|
22 |
+
"transformers_version": "4.28.0.dev0"
|
23 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": {
|
3 |
+
"height": 30,
|
4 |
+
"width": 30
|
5 |
+
},
|
6 |
+
"do_center_crop": true,
|
7 |
+
"do_normalize": true,
|
8 |
+
"do_rescale": true,
|
9 |
+
"do_resize": true,
|
10 |
+
"image_mean": [
|
11 |
+
0.5,
|
12 |
+
0.5,
|
13 |
+
0.5
|
14 |
+
],
|
15 |
+
"image_processor_type": "DeiTImageProcessor",
|
16 |
+
"image_std": [
|
17 |
+
0.5,
|
18 |
+
0.5,
|
19 |
+
0.5
|
20 |
+
],
|
21 |
+
"resample": 3,
|
22 |
+
"rescale_factor": 0.00392156862745098,
|
23 |
+
"size": {
|
24 |
+
"height": 30,
|
25 |
+
"width": 30
|
26 |
+
}
|
27 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:00a015ea1a8a6b1def3fd5308e7997f83b8f05df24343dc03abf85660bc83bc2
|
3 |
+
size 199228
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03a32e51680064682ec14fb6dfc543e6d743657da3153b2418100c81a84124c8
|
3 |
+
size 291688
|