hf-transformers-bot commited on
Commit
3c9c7b1
·
1 Parent(s): 752215f

Upload tiny models for MgpstrForSceneTextRecognition

Browse files
Files changed (3) hide show
  1. config.json +31 -0
  2. preprocessor_config.json +26 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MgpstrForSceneTextRecognition"
4
+ ],
5
+ "attn_drop_rate": 0.0,
6
+ "distilled": false,
7
+ "drop_path_rate": 0.0,
8
+ "drop_rate": 0.0,
9
+ "hidden_size": 32,
10
+ "image_size": [
11
+ 32,
12
+ 128
13
+ ],
14
+ "initializer_range": 0.02,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_token_length": 27,
17
+ "mlp_ratio": 4.0,
18
+ "model_type": "mgp-str",
19
+ "num_attention_heads": 4,
20
+ "num_bpe_labels": 99,
21
+ "num_channels": 3,
22
+ "num_character_labels": 38,
23
+ "num_hidden_layers": 5,
24
+ "num_wordpiece_labels": 99,
25
+ "output_a3_attentions": false,
26
+ "output_hidden_states": null,
27
+ "patch_size": 4,
28
+ "qkv_bias": true,
29
+ "torch_dtype": "float32",
30
+ "transformers_version": "4.28.0.dev0"
31
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": [
3
+ 32,
4
+ 128
5
+ ],
6
+ "do_normalize": true,
7
+ "do_rescale": true,
8
+ "do_resize": true,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_processor_type": "ViTImageProcessor",
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": 128
25
+ }
26
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a74e85757e93866fa17c53fdd4bdb97d944531e25d3cbb74333dde372ed37a11
3
+ size 367682