first commit

This commit is contained in:
YYJ-aaaa 2024-12-04 14:20:59 +08:00
parent 7741ab7e8b
commit e27c676f84
5 changed files with 79 additions and 0 deletions

26
config.json Normal file
View File

@ -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
}

BIN
model.safetensors (Stored with Git LFS) Normal file

Binary file not shown.

7
preprocessor_config.json Normal file
View File

@ -0,0 +1,7 @@
{
"do_normalize": false,
"do_resize": true,
"feature_extractor_type": "ViTFeatureExtractor",
"resample": 3,
"size": {"height": 32, "width": 128}
}

BIN
pytorch_model.bin (Stored with Git LFS) Normal file

Binary file not shown.

40
vocab.json Normal file
View File

@ -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
}