DarkWolf commited on
Commit
532e13f
1 Parent(s): ac08e00

Upload LayoutLMv3ForTokenClassification

Browse files
Files changed (2) hide show
  1. config.json +78 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/layoutlmv3-base",
3
+ "architectures": [
4
+ "LayoutLMv3ForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "coordinate_size": 128,
10
+ "eos_token_id": 2,
11
+ "has_relative_attention_bias": true,
12
+ "has_spatial_attention_bias": true,
13
+ "hidden_act": "gelu",
14
+ "hidden_dropout_prob": 0.1,
15
+ "hidden_size": 768,
16
+ "id2label": {
17
+ "0": "O",
18
+ "1": "B-daily_value",
19
+ "2": "B-header",
20
+ "3": "B-header_value",
21
+ "4": "B-ingredient_header",
22
+ "5": "B-ingredient_value",
23
+ "6": "B-nutrient",
24
+ "7": "B-nutrient2",
25
+ "8": "B-nutrient_value2",
26
+ "9": "I-daily_value",
27
+ "10": "I-header",
28
+ "11": "I-header_value",
29
+ "12": "I-ingredient_header",
30
+ "13": "I-ingredient_value",
31
+ "14": "I-nutrient",
32
+ "15": "I-nutrient2",
33
+ "16": "I-nutrient_value2"
34
+ },
35
+ "initializer_range": 0.02,
36
+ "input_size": 224,
37
+ "intermediate_size": 3072,
38
+ "label2id": {
39
+ "B-daily_value": 1,
40
+ "B-header": 2,
41
+ "B-header_value": 3,
42
+ "B-ingredient_header": 4,
43
+ "B-ingredient_value": 5,
44
+ "B-nutrient": 6,
45
+ "B-nutrient2": 7,
46
+ "B-nutrient_value2": 8,
47
+ "I-daily_value": 9,
48
+ "I-header": 10,
49
+ "I-header_value": 11,
50
+ "I-ingredient_header": 12,
51
+ "I-ingredient_value": 13,
52
+ "I-nutrient": 14,
53
+ "I-nutrient2": 15,
54
+ "I-nutrient_value2": 16,
55
+ "O": 0
56
+ },
57
+ "layer_norm_eps": 1e-05,
58
+ "max_2d_position_embeddings": 1024,
59
+ "max_position_embeddings": 514,
60
+ "max_rel_2d_pos": 256,
61
+ "max_rel_pos": 128,
62
+ "model_type": "layoutlmv3",
63
+ "num_attention_heads": 12,
64
+ "num_channels": 3,
65
+ "num_hidden_layers": 12,
66
+ "pad_token_id": 1,
67
+ "patch_size": 16,
68
+ "rel_2d_pos_bins": 64,
69
+ "rel_pos_bins": 32,
70
+ "second_input_size": 112,
71
+ "shape_size": 128,
72
+ "text_embed": true,
73
+ "torch_dtype": "float32",
74
+ "transformers_version": "4.26.1",
75
+ "type_vocab_size": 1,
76
+ "visual_embed": true,
77
+ "vocab_size": 50265
78
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d4d1b130ded2c9aee6a3dc262be3f23136fcb4f61128243f846ca168a2be147
3
+ size 503803337