diff --git a/config.json b/config.json new file mode 100644 index 0000000..dc4893f --- /dev/null +++ b/config.json @@ -0,0 +1,26 @@ +{ + "_name_or_path": "alibaba-damo/mgp-str-base", + "architectures": + [ + "MGPSTRModel" + ], + "image_size": [32, 128], + "patch_size": 4, + "num_channels": 3, + "max_token_length": 27, + "num_character_labels": 38, + "num_bpe_labels": 50257, + "num_wordpiece_labels": 30522, + "hidden_size": 768, + "num_hidden_layers": 12, + "num_attention_heads": 12, + "mlp_ratio": 4, + "qkv_bias": true, + "drop_rate": 0.0, + "attn_drop_rate": 0.0, + "drop_path_rate": 0.0, + "output_a3_attentions": false, + "model_type": "mgp-str", + "torch_dtype": "float32", + "transformers_version": null +} \ No newline at end of file diff --git a/model.safetensors b/model.safetensors new file mode 100644 index 0000000..592fa5c --- /dev/null +++ b/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edc2be05c19469964da9413eeda0a6ade071a45b73ef8c4273d8cbc20fe399de +size 591828084 diff --git a/preprocessor_config.json b/preprocessor_config.json new file mode 100644 index 0000000..0051b33 --- /dev/null +++ b/preprocessor_config.json @@ -0,0 +1,7 @@ +{ + "do_normalize": false, + "do_resize": true, + "feature_extractor_type": "ViTFeatureExtractor", + "resample": 3, + "size": {"height": 32, "width": 128} +} \ No newline at end of file diff --git a/pytorch_model.bin b/pytorch_model.bin new file mode 100644 index 0000000..7460fc6 --- /dev/null +++ b/pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fd53e97eef15dfaa5dd3a10fd44d4d84ad4927e8def4c2e2cc4f373feef5353 +size 591864585 diff --git a/vocab.json b/vocab.json new file mode 100644 index 0000000..1ec7177 --- /dev/null +++ b/vocab.json @@ -0,0 +1,40 @@ +{ + "[GO]": 0, + "[s]": 1, + "0": 2, + "1": 3, + "2": 4, + "3": 5, + "4": 6, + "5": 7, + "6": 8, + "7": 9, + "8": 10, + "9": 11, + "a": 12, + "b": 13, + "c": 14, + "d": 15, + "e": 16, + "f": 17, + "g": 18, + "h": 19, + "i": 20, + "j": 21, + "k": 22, + "l": 23, + "m": 24, + "n": 25, + "o": 26, + "p": 27, + "q": 28, + "r": 29, + "s": 30, + "t": 31, + "u": 32, + "v": 33, + "w": 34, + "x": 35, + "y": 36, + "z": 37 +} \ No newline at end of file