Xenova HF Staff commited on
Commit
f2359d3
·
verified ·
1 Parent(s): f475874

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. config.json +37 -0
  2. onnx/model.onnx +3 -0
  3. preprocessor_config.json +26 -0
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "hf-internal-testing/tiny-random-DonutSwinModel",
4
+ "architectures": [
5
+ "DonutSwinModel"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.0,
8
+ "depths": [
9
+ 1,
10
+ 2,
11
+ 1
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 16,
15
+ "encoder_stride": 8,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 64,
19
+ "image_size": 32,
20
+ "initializer_range": 0.02,
21
+ "layer_norm_eps": 1e-05,
22
+ "mlp_ratio": 2.0,
23
+ "model_type": "donut-swin",
24
+ "num_channels": 3,
25
+ "num_heads": [
26
+ 2,
27
+ 2,
28
+ 4
29
+ ],
30
+ "num_layers": 3,
31
+ "patch_size": 2,
32
+ "path_norm": true,
33
+ "qkv_bias": true,
34
+ "transformers_version": "4.48.2",
35
+ "use_absolute_embeddings": false,
36
+ "window_size": 2
37
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:146fe1bea7b300d8cef29b52b60fcc884b4897f96b88966fe39157b07505f01e
3
+ size 612357
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": "DonutFeatureExtractor",
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
+ }