hf-transformers-bot
commited on
Commit
•
37af4d4
1
Parent(s):
00a905f
Upload tiny models for DonutSwinModel
Browse files- config.json +36 -0
- preprocessor_config.json +26 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"DonutSwinModel"
|
4 |
+
],
|
5 |
+
"attention_probs_dropout_prob": 0.0,
|
6 |
+
"depths": [
|
7 |
+
1,
|
8 |
+
2,
|
9 |
+
1
|
10 |
+
],
|
11 |
+
"drop_path_rate": 0.1,
|
12 |
+
"embed_dim": 16,
|
13 |
+
"encoder_stride": 8,
|
14 |
+
"hidden_act": "gelu",
|
15 |
+
"hidden_dropout_prob": 0.0,
|
16 |
+
"hidden_size": 64,
|
17 |
+
"image_size": 32,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"layer_norm_eps": 1e-05,
|
20 |
+
"mlp_ratio": 2.0,
|
21 |
+
"model_type": "donut-swin",
|
22 |
+
"num_channels": 3,
|
23 |
+
"num_heads": [
|
24 |
+
2,
|
25 |
+
2,
|
26 |
+
4
|
27 |
+
],
|
28 |
+
"num_layers": 3,
|
29 |
+
"patch_size": 2,
|
30 |
+
"path_norm": true,
|
31 |
+
"qkv_bias": true,
|
32 |
+
"torch_dtype": "float32",
|
33 |
+
"transformers_version": "4.28.0.dev0",
|
34 |
+
"use_absolute_embeddings": false,
|
35 |
+
"window_size": 2
|
36 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": 32,
|
3 |
+
"do_align_long_axis": false,
|
4 |
+
"do_normalize": true,
|
5 |
+
"do_pad": true,
|
6 |
+
"do_rescale": true,
|
7 |
+
"do_resize": true,
|
8 |
+
"do_thumbnail": true,
|
9 |
+
"image_mean": [
|
10 |
+
0.5,
|
11 |
+
0.5,
|
12 |
+
0.5
|
13 |
+
],
|
14 |
+
"image_processor_type": "DonutImageProcessor",
|
15 |
+
"image_std": [
|
16 |
+
0.5,
|
17 |
+
0.5,
|
18 |
+
0.5
|
19 |
+
],
|
20 |
+
"resample": 2,
|
21 |
+
"rescale_factor": 0.00392156862745098,
|
22 |
+
"size": {
|
23 |
+
"height": 32,
|
24 |
+
"width": 32
|
25 |
+
}
|
26 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:324e548dfe60e03e0b75c1e3345ad589675fd5a96c151db78d21595c0a0dbc69
|
3 |
+
size 282087
|