invoice-recognizer / config.json
SkanderSassi's picture
Upload 12 files
7942e5e
{
"_name_or_path": "drive/MyDrive/factocr/workingmodel/checkpoint-3000",
"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-DATE_LABEL",
"1": "B-FACT_LABEL",
"2": "B-NUMERO_FACTURE",
"3": "B-PRIX_HT",
"4": "B-PRIX_HT_LABEL",
"5": "B-PRIX_TTC",
"6": "B-PRIX_TTC_LABEL",
"7": "B-TIMBRE",
"8": "B-TIMBRE_LABEL",
"9": "B-TVA",
"10": "B-TVA_LABEL",
"11": "E-DATE_LABEL",
"12": "E-FACT_LABEL",
"13": "E-NUMERO_FACTURE",
"14": "E-PRIX_HT",
"15": "E-PRIX_HT_LABEL",
"16": "E-PRIX_TTC",
"17": "E-PRIX_TTC_LABEL",
"18": "E-TIMBRE",
"19": "E-TIMBRE_LABEL",
"20": "E-TVA",
"21": "E-TVA_LABEL",
"22": "I-DATE_LABEL",
"23": "I-FACT_LABEL",
"24": "I-NUMERO_FACTURE",
"25": "I-PRIX_HT_LABEL",
"26": "I-PRIX_TTC",
"27": "I-PRIX_TTC_LABEL",
"28": "I-TIMBRE_LABEL",
"29": "I-TVA_LABEL",
"30": "O",
"31": "S-DATE",
"32": "S-DATE_LABEL",
"33": "S-FACT_LABEL",
"34": "S-NUMERO_FACTURE",
"35": "S-PRIX_HT",
"36": "S-PRIX_HT_LABEL",
"37": "S-PRIX_TTC",
"38": "S-PRIX_TTC_LABEL",
"39": "S-TIMBRE",
"40": "S-TIMBRE_LABEL",
"41": "S-TVA",
"42": "S-TVA_LABEL",
"43": "B-DATE",
"44": "E-DATE",
"45": "I-DATE"
},
"initializer_range": 0.02,
"input_size": 224,
"intermediate_size": 3072,
"label2id": {
"B-DATE": 43,
"B-DATE_LABEL": 0,
"B-FACT_LABEL": 1,
"B-NUMERO_FACTURE": 2,
"B-PRIX_HT": 3,
"B-PRIX_HT_LABEL": 4,
"B-PRIX_TTC": 5,
"B-PRIX_TTC_LABEL": 6,
"B-TIMBRE": 7,
"B-TIMBRE_LABEL": 8,
"B-TVA": 9,
"B-TVA_LABEL": 10,
"E-DATE": 44,
"E-DATE_LABEL": 11,
"E-FACT_LABEL": 12,
"E-NUMERO_FACTURE": 13,
"E-PRIX_HT": 14,
"E-PRIX_HT_LABEL": 15,
"E-PRIX_TTC": 16,
"E-PRIX_TTC_LABEL": 17,
"E-TIMBRE": 18,
"E-TIMBRE_LABEL": 19,
"E-TVA": 20,
"E-TVA_LABEL": 21,
"I-DATE": 45,
"I-DATE_LABEL": 22,
"I-FACT_LABEL": 23,
"I-NUMERO_FACTURE": 24,
"I-PRIX_HT_LABEL": 25,
"I-PRIX_TTC": 26,
"I-PRIX_TTC_LABEL": 27,
"I-TIMBRE_LABEL": 28,
"I-TVA_LABEL": 29,
"O": 30,
"S-DATE": 31,
"S-DATE_LABEL": 32,
"S-FACT_LABEL": 33,
"S-NUMERO_FACTURE": 34,
"S-PRIX_HT": 35,
"S-PRIX_HT_LABEL": 36,
"S-PRIX_TTC": 37,
"S-PRIX_TTC_LABEL": 38,
"S-TIMBRE": 39,
"S-TIMBRE_LABEL": 40,
"S-TVA": 41,
"S-TVA_LABEL": 42
},
"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.26.0",
"type_vocab_size": 1,
"visual_embed": true,
"vocab_size": 50265
}