layoutxlm-de-durch / config.json
nhung's picture
Training in progress, step 3000
b60517d
{
"_name_or_path": "microsoft/layoutxlm-base",
"architectures": [
"LayoutLMv2ForTokenClassification"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": 0,
"convert_sync_batchnorm": true,
"coordinate_size": 128,
"detectron2_config_args": {
"MODEL.ANCHOR_GENERATOR.SIZES": [
[
32
],
[
64
],
[
128
],
[
256
],
[
512
]
],
"MODEL.BACKBONE.NAME": "build_resnet_fpn_backbone",
"MODEL.FPN.IN_FEATURES": [
"res2",
"res3",
"res4",
"res5"
],
"MODEL.MASK_ON": true,
"MODEL.PIXEL_STD": [
57.375,
57.12,
58.395
],
"MODEL.POST_NMS_TOPK_TEST": 1000,
"MODEL.RESNETS.ASPECT_RATIOS": [
[
0.5,
1.0,
2.0
]
],
"MODEL.RESNETS.DEPTH": 101,
"MODEL.RESNETS.NUM_GROUPS": 32,
"MODEL.RESNETS.OUT_FEATURES": [
"res2",
"res3",
"res4",
"res5"
],
"MODEL.RESNETS.SIZES": [
[
32
],
[
64
],
[
128
],
[
256
],
[
512
]
],
"MODEL.RESNETS.STRIDE_IN_1X1": false,
"MODEL.RESNETS.WIDTH_PER_GROUP": 8,
"MODEL.ROI_BOX_HEAD.NAME": "FastRCNNConvFCHead",
"MODEL.ROI_BOX_HEAD.NUM_FC": 2,
"MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION": 14,
"MODEL.ROI_HEADS.IN_FEATURES": [
"p2",
"p3",
"p4",
"p5"
],
"MODEL.ROI_HEADS.NAME": "StandardROIHeads",
"MODEL.ROI_HEADS.NUM_CLASSES": 5,
"MODEL.ROI_MASK_HEAD.NAME": "MaskRCNNConvUpsampleHead",
"MODEL.ROI_MASK_HEAD.NUM_CONV": 4,
"MODEL.ROI_MASK_HEAD.POOLER_RESOLUTION": 7,
"MODEL.RPN.IN_FEATURES": [
"p2",
"p3",
"p4",
"p5",
"p6"
],
"MODEL.RPN.POST_NMS_TOPK_TRAIN": 1000,
"MODEL.RPN.PRE_NMS_TOPK_TEST": 1000,
"MODEL.RPN.PRE_NMS_TOPK_TRAIN": 2000
},
"eos_token_id": 2,
"fast_qkv": false,
"gradient_checkpointing": false,
"has_relative_attention_bias": false,
"has_spatial_attention_bias": false,
"has_visual_segment_embedding": true,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"id2label": {
"0": "O",
"1": "B-APPLE",
"2": "B-BANANA",
"3": "B-APRICOT",
"4": "B-ATEMOYA",
"5": "B-AVOCADOS",
"6": "B-BLUEBERRY",
"7": "B-BLACKCURRANT",
"8": "B-ACKEE",
"9": "B-CRANBERRY",
"10": "B-CANTALOUPE",
"11": "B-CHERRY",
"12": "B-KIWI",
"13": "B-KABOSU",
"14": "B-KIWANO",
"15": "B-ORANGE",
"16": "B-LEMON",
"17": "B-CHEMPEDAK",
"18": "B-FIG",
"19": "B-GUAVA",
"20": "B-GRAPES",
"21": "B-GRAPEFRUIT",
"22": "B-DRAGONFRUIT",
"23": "B-BAEL",
"24": "B-QUINCE",
"25": "B-PAPAYA",
"26": "B-MANGO",
"27": "B-PINEAPPLE",
"28": "B-POMEGRANATE",
"29": "B-RAMBUTAN",
"30": "B-WATERMELON",
"31": "B-LYCHEE",
"32": "B-MANGOSTEEN",
"33": "B-MUSKMELON",
"34": "B-PERSIMMON",
"35": "B-KUMQUAT",
"36": "B-PEACH",
"37": "B-STRAWBERRIES",
"38": "B-TANGERINE",
"39": "B-OLIVE",
"40": "B-NECTARINE",
"41": "B-JACKFRUIT",
"42": "B-HAZELNUT",
"43": "B-DURIAN",
"44": "I-APPLE",
"45": "I-BANANA",
"46": "I-APRICOT",
"47": "I-ATEMOYA",
"48": "I-AVOCADOS",
"49": "I-BLUEBERRY",
"50": "I-BLACKCURRANT",
"51": "I-ACKEE",
"52": "I-CRANBERRY",
"53": "I-CANTALOUPE",
"54": "I-CHERRY",
"55": "I-KIWI",
"56": "I-KABOSU",
"57": "I-KIWANO",
"58": "I-ORANGE",
"59": "I-LEMON",
"60": "I-CHEMPEDAK",
"61": "I-FIG",
"62": "I-GUAVA",
"63": "I-GRAPES",
"64": "I-GRAPEFRUIT",
"65": "I-DRAGONFRUIT",
"66": "I-BAEL",
"67": "I-QUINCE",
"68": "I-PAPAYA",
"69": "I-MANGO",
"70": "I-PINEAPPLE",
"71": "I-POMEGRANATE",
"72": "I-RAMBUTAN",
"73": "I-WATERMELON",
"74": "I-LYCHEE",
"75": "I-MANGOSTEEN",
"76": "I-MUSKMELON",
"77": "I-PERSIMMON",
"78": "I-KUMQUAT",
"79": "I-PEACH",
"80": "I-STRAWBERRIES",
"81": "I-TANGERINE",
"82": "I-OLIVE",
"83": "I-NECTARINE",
"84": "I-JACKFRUIT",
"85": "I-HAZELNUT",
"86": "I-DURIAN"
},
"image_feature_pool_shape": [
7,
7,
256
],
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"B-ACKEE": 8,
"B-APPLE": 1,
"B-APRICOT": 3,
"B-ATEMOYA": 4,
"B-AVOCADOS": 5,
"B-BAEL": 23,
"B-BANANA": 2,
"B-BLACKCURRANT": 7,
"B-BLUEBERRY": 6,
"B-CANTALOUPE": 10,
"B-CHEMPEDAK": 17,
"B-CHERRY": 11,
"B-CRANBERRY": 9,
"B-DRAGONFRUIT": 22,
"B-DURIAN": 43,
"B-FIG": 18,
"B-GRAPEFRUIT": 21,
"B-GRAPES": 20,
"B-GUAVA": 19,
"B-HAZELNUT": 42,
"B-JACKFRUIT": 41,
"B-KABOSU": 13,
"B-KIWANO": 14,
"B-KIWI": 12,
"B-KUMQUAT": 35,
"B-LEMON": 16,
"B-LYCHEE": 31,
"B-MANGO": 26,
"B-MANGOSTEEN": 32,
"B-MUSKMELON": 33,
"B-NECTARINE": 40,
"B-OLIVE": 39,
"B-ORANGE": 15,
"B-PAPAYA": 25,
"B-PEACH": 36,
"B-PERSIMMON": 34,
"B-PINEAPPLE": 27,
"B-POMEGRANATE": 28,
"B-QUINCE": 24,
"B-RAMBUTAN": 29,
"B-STRAWBERRIES": 37,
"B-TANGERINE": 38,
"B-WATERMELON": 30,
"I-ACKEE": 51,
"I-APPLE": 44,
"I-APRICOT": 46,
"I-ATEMOYA": 47,
"I-AVOCADOS": 48,
"I-BAEL": 66,
"I-BANANA": 45,
"I-BLACKCURRANT": 50,
"I-BLUEBERRY": 49,
"I-CANTALOUPE": 53,
"I-CHEMPEDAK": 60,
"I-CHERRY": 54,
"I-CRANBERRY": 52,
"I-DRAGONFRUIT": 65,
"I-DURIAN": 86,
"I-FIG": 61,
"I-GRAPEFRUIT": 64,
"I-GRAPES": 63,
"I-GUAVA": 62,
"I-HAZELNUT": 85,
"I-JACKFRUIT": 84,
"I-KABOSU": 56,
"I-KIWANO": 57,
"I-KIWI": 55,
"I-KUMQUAT": 78,
"I-LEMON": 59,
"I-LYCHEE": 74,
"I-MANGO": 69,
"I-MANGOSTEEN": 75,
"I-MUSKMELON": 76,
"I-NECTARINE": 83,
"I-OLIVE": 82,
"I-ORANGE": 58,
"I-PAPAYA": 68,
"I-PEACH": 79,
"I-PERSIMMON": 77,
"I-PINEAPPLE": 70,
"I-POMEGRANATE": 71,
"I-QUINCE": 67,
"I-RAMBUTAN": 72,
"I-STRAWBERRIES": 80,
"I-TANGERINE": 81,
"I-WATERMELON": 73,
"O": 0
},
"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": "layoutlmv2",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"output_past": true,
"pad_token_id": 1,
"rel_2d_pos_bins": 64,
"rel_pos_bins": 32,
"shape_size": 128,
"tokenizer_class": "LayoutXLMTokenizer",
"torch_dtype": "float32",
"transformers_version": "4.27.4",
"type_vocab_size": 1,
"vocab_size": 250002
}