Commit
·
b967cb2
1
Parent(s):
d1d0742
Upload 3 files
Browse files- config.json +101 -0
- preprocessor_config.json +20 -0
- pytorch_model.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "microsoft/dit-base",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BeitForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.0,
|
| 7 |
+
"auxiliary_channels": 256,
|
| 8 |
+
"auxiliary_concat_input": false,
|
| 9 |
+
"auxiliary_loss_weight": 0.4,
|
| 10 |
+
"auxiliary_num_convs": 1,
|
| 11 |
+
"drop_path_rate": 0.05,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.0,
|
| 14 |
+
"hidden_size": 768,
|
| 15 |
+
"id2label": {
|
| 16 |
+
"0": "advertisement",
|
| 17 |
+
"1": "bank_card",
|
| 18 |
+
"2": "budget",
|
| 19 |
+
"3": "certificate",
|
| 20 |
+
"4": "contract",
|
| 21 |
+
"5": "driver_license",
|
| 22 |
+
"6": "email",
|
| 23 |
+
"7": "form",
|
| 24 |
+
"8": "gift_card",
|
| 25 |
+
"9": "handwritten",
|
| 26 |
+
"10": "identification_card",
|
| 27 |
+
"11": "insurrance_card",
|
| 28 |
+
"12": "invitation_card",
|
| 29 |
+
"13": "invoice",
|
| 30 |
+
"14": "letter",
|
| 31 |
+
"15": "member_card",
|
| 32 |
+
"16": "name_card",
|
| 33 |
+
"17": "news_article",
|
| 34 |
+
"18": "presentation",
|
| 35 |
+
"19": "questionnaire",
|
| 36 |
+
"20": "resume",
|
| 37 |
+
"21": "scientific_publication",
|
| 38 |
+
"22": "scientific_report",
|
| 39 |
+
"23": "specification",
|
| 40 |
+
"24": "staff_card"
|
| 41 |
+
},
|
| 42 |
+
"image_size": 224,
|
| 43 |
+
"initializer_range": 0.02,
|
| 44 |
+
"intermediate_size": 3072,
|
| 45 |
+
"label2id": {
|
| 46 |
+
"advertisement": 0,
|
| 47 |
+
"bank_card": 1,
|
| 48 |
+
"budget": 2,
|
| 49 |
+
"certificate": 3,
|
| 50 |
+
"contract": 4,
|
| 51 |
+
"driver_license": 5,
|
| 52 |
+
"email": 6,
|
| 53 |
+
"form": 7,
|
| 54 |
+
"gift_card": 8,
|
| 55 |
+
"handwritten": 9,
|
| 56 |
+
"identification_card": 10,
|
| 57 |
+
"insurrance_card": 11,
|
| 58 |
+
"invitation_card": 12,
|
| 59 |
+
"invoice": 13,
|
| 60 |
+
"letter": 14,
|
| 61 |
+
"member_card": 15,
|
| 62 |
+
"name_card": 16,
|
| 63 |
+
"news_article": 17,
|
| 64 |
+
"presentation": 18,
|
| 65 |
+
"questionnaire": 19,
|
| 66 |
+
"resume": 20,
|
| 67 |
+
"scientific_publication": 21,
|
| 68 |
+
"scientific_report": 22,
|
| 69 |
+
"specification": 23,
|
| 70 |
+
"staff_card": 24
|
| 71 |
+
},
|
| 72 |
+
"layer_norm_eps": 1e-12,
|
| 73 |
+
"layer_scale_init_value": 0.1,
|
| 74 |
+
"model_type": "beit",
|
| 75 |
+
"num_attention_heads": 12,
|
| 76 |
+
"num_channels": 3,
|
| 77 |
+
"num_hidden_layers": 12,
|
| 78 |
+
"out_indices": [
|
| 79 |
+
3,
|
| 80 |
+
5,
|
| 81 |
+
7,
|
| 82 |
+
11
|
| 83 |
+
],
|
| 84 |
+
"patch_size": 16,
|
| 85 |
+
"pool_scales": [
|
| 86 |
+
1,
|
| 87 |
+
2,
|
| 88 |
+
3,
|
| 89 |
+
6
|
| 90 |
+
],
|
| 91 |
+
"semantic_loss_ignore_index": 255,
|
| 92 |
+
"torch_dtype": "float32",
|
| 93 |
+
"transformers_version": "4.33.0",
|
| 94 |
+
"use_absolute_position_embeddings": true,
|
| 95 |
+
"use_auxiliary_head": true,
|
| 96 |
+
"use_mask_token": true,
|
| 97 |
+
"use_mean_pooling": true,
|
| 98 |
+
"use_relative_position_bias": false,
|
| 99 |
+
"use_shared_relative_position_bias": false,
|
| 100 |
+
"vocab_size": 8192
|
| 101 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": 224,
|
| 3 |
+
"do_center_crop": false,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"feature_extractor_type": "BeitFeatureExtractor",
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"reduce_labels": false,
|
| 18 |
+
"resample": 2,
|
| 19 |
+
"size": 224
|
| 20 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05cbf87455d432152e9977a2ee33345322be9d8c1c4ca8b45501a8a0e4933ae2
|
| 3 |
+
size 343383585
|