|
{ |
|
"_name_or_path": "microsoft/layoutlmv3-base", |
|
"architectures": [ |
|
"LayoutLMv3ForTokenClassification" |
|
], |
|
"attention_probs_dropout_prob": 0.1, |
|
"bos_token_id": 0, |
|
"classifier_dropout": null, |
|
"coordinate_size": 128, |
|
"eos_token_id": 2, |
|
"has_relative_attention_bias": true, |
|
"has_spatial_attention_bias": true, |
|
"hidden_act": "gelu", |
|
"hidden_dropout_prob": 0.1, |
|
"hidden_size": 768, |
|
"id2label": { |
|
"0": "B-ID_BLOOD_TYPE", |
|
"1": "B-ID_BORN_CITY", |
|
"2": "B-ID_BORN_DATE", |
|
"3": "B-ID_EXP_CITY", |
|
"4": "B-ID_EXP_DATE", |
|
"5": "B-ID_EXPIRATION_DATE", |
|
"6": "B-ID_HEIGHT", |
|
"7": "B-ID_LAST_NAME", |
|
"8": "B-ID_NAME", |
|
"9": "B-ID_NATIONALITY", |
|
"10": "B-ID_NUM", |
|
"11": "B-ID_SEX", |
|
"12": "B-ID_TYPE", |
|
"13": "B-INEMEX_AGE", |
|
"14": "B-INEMEX_CURP", |
|
"15": "B-INEMEX_EMI", |
|
"16": "B-INEMEX_HOME", |
|
"17": "B-INEMEX_INV", |
|
"18": "B-INEMEX_KEY", |
|
"19": "B-INEMEX_REGY", |
|
"20": "B-INEMEX_VAL", |
|
"21": "B-PASSP_CODC", |
|
"22": "B-PASSP_NUM", |
|
"23": "B-PASSP_TYP", |
|
"24": "I-ID_BLOOD_TYPE", |
|
"25": "I-ID_BORN_CITY", |
|
"26": "I-ID_BORN_DATE", |
|
"27": "I-ID_EXP_CITY", |
|
"28": "I-ID_EXP_DATE", |
|
"29": "I-ID_EXPIRATION_DATE", |
|
"30": "I-ID_LAST_NAME", |
|
"31": "I-ID_NAME", |
|
"32": "I-ID_TYPE", |
|
"33": "I-INEMEX_CURP", |
|
"34": "I-INEMEX_HOME", |
|
"35": "I-INEMEX_REGY", |
|
"36": "I-INEMEX_VAL", |
|
"37": "O" |
|
}, |
|
"initializer_range": 0.02, |
|
"input_size": 224, |
|
"intermediate_size": 3072, |
|
"label2id": { |
|
"B-ID_BLOOD_TYPE": 0, |
|
"B-ID_BORN_CITY": 1, |
|
"B-ID_BORN_DATE": 2, |
|
"B-ID_EXPIRATION_DATE": 5, |
|
"B-ID_EXP_CITY": 3, |
|
"B-ID_EXP_DATE": 4, |
|
"B-ID_HEIGHT": 6, |
|
"B-ID_LAST_NAME": 7, |
|
"B-ID_NAME": 8, |
|
"B-ID_NATIONALITY": 9, |
|
"B-ID_NUM": 10, |
|
"B-ID_SEX": 11, |
|
"B-ID_TYPE": 12, |
|
"B-INEMEX_AGE": 13, |
|
"B-INEMEX_CURP": 14, |
|
"B-INEMEX_EMI": 15, |
|
"B-INEMEX_HOME": 16, |
|
"B-INEMEX_INV": 17, |
|
"B-INEMEX_KEY": 18, |
|
"B-INEMEX_REGY": 19, |
|
"B-INEMEX_VAL": 20, |
|
"B-PASSP_CODC": 21, |
|
"B-PASSP_NUM": 22, |
|
"B-PASSP_TYP": 23, |
|
"I-ID_BLOOD_TYPE": 24, |
|
"I-ID_BORN_CITY": 25, |
|
"I-ID_BORN_DATE": 26, |
|
"I-ID_EXPIRATION_DATE": 29, |
|
"I-ID_EXP_CITY": 27, |
|
"I-ID_EXP_DATE": 28, |
|
"I-ID_LAST_NAME": 30, |
|
"I-ID_NAME": 31, |
|
"I-ID_TYPE": 32, |
|
"I-INEMEX_CURP": 33, |
|
"I-INEMEX_HOME": 34, |
|
"I-INEMEX_REGY": 35, |
|
"I-INEMEX_VAL": 36, |
|
"O": 37 |
|
}, |
|
"layer_norm_eps": 1e-05, |
|
"max_2d_position_embeddings": 1024, |
|
"max_position_embeddings": 514, |
|
"max_rel_2d_pos": 256, |
|
"max_rel_pos": 128, |
|
"model_type": "layoutlmv3", |
|
"num_attention_heads": 12, |
|
"num_channels": 3, |
|
"num_hidden_layers": 12, |
|
"pad_token_id": 1, |
|
"patch_size": 16, |
|
"rel_2d_pos_bins": 64, |
|
"rel_pos_bins": 32, |
|
"second_input_size": 112, |
|
"shape_size": 128, |
|
"text_embed": true, |
|
"torch_dtype": "float32", |
|
"transformers_version": "4.29.2", |
|
"type_vocab_size": 1, |
|
"visual_embed": true, |
|
"vocab_size": 50265 |
|
} |
|
|