Upload folder using huggingface_hub
Browse files- config.json +46 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- preprocessor_config.json +29 -0
- quantize_config.json +34 -0
config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/dit-large",
|
3 |
+
"architectures": [
|
4 |
+
"BeitForMaskedImageModeling"
|
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.1,
|
12 |
+
"hidden_act": "gelu",
|
13 |
+
"hidden_dropout_prob": 0.0,
|
14 |
+
"hidden_size": 1024,
|
15 |
+
"image_size": 224,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 4096,
|
18 |
+
"layer_norm_eps": 1e-12,
|
19 |
+
"layer_scale_init_value": 0.1,
|
20 |
+
"model_type": "beit",
|
21 |
+
"num_attention_heads": 16,
|
22 |
+
"num_channels": 3,
|
23 |
+
"num_hidden_layers": 24,
|
24 |
+
"out_indices": [
|
25 |
+
3,
|
26 |
+
5,
|
27 |
+
7,
|
28 |
+
11
|
29 |
+
],
|
30 |
+
"patch_size": 16,
|
31 |
+
"pool_scales": [
|
32 |
+
1,
|
33 |
+
2,
|
34 |
+
3,
|
35 |
+
6
|
36 |
+
],
|
37 |
+
"semantic_loss_ignore_index": 255,
|
38 |
+
"transformers_version": "4.33.2",
|
39 |
+
"use_absolute_position_embeddings": true,
|
40 |
+
"use_auxiliary_head": true,
|
41 |
+
"use_mask_token": true,
|
42 |
+
"use_mean_pooling": true,
|
43 |
+
"use_relative_position_bias": false,
|
44 |
+
"use_shared_relative_position_bias": false,
|
45 |
+
"vocab_size": 8192
|
46 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4c8baa7b7198c5b32a4dcd5df24c3cf0a8004a3aa99cd62b56a20758ba7be82f
|
3 |
+
size 1213786258
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:619b9ddce2c0a3c869332052b5c04c9482c86938a42aca2f37ce9b1acf34e3c6
|
3 |
+
size 306904178
|
preprocessor_config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": {
|
3 |
+
"height": 224,
|
4 |
+
"width": 224
|
5 |
+
},
|
6 |
+
"do_center_crop": false,
|
7 |
+
"do_normalize": true,
|
8 |
+
"do_reduce_labels": false,
|
9 |
+
"do_rescale": true,
|
10 |
+
"do_resize": true,
|
11 |
+
"feature_extractor_type": "BeitFeatureExtractor",
|
12 |
+
"image_mean": [
|
13 |
+
0.5,
|
14 |
+
0.5,
|
15 |
+
0.5
|
16 |
+
],
|
17 |
+
"image_processor_type": "BeitFeatureExtractor",
|
18 |
+
"image_std": [
|
19 |
+
0.5,
|
20 |
+
0.5,
|
21 |
+
0.5
|
22 |
+
],
|
23 |
+
"resample": 2,
|
24 |
+
"rescale_factor": 0.00392156862745098,
|
25 |
+
"size": {
|
26 |
+
"height": 224,
|
27 |
+
"width": 224
|
28 |
+
}
|
29 |
+
}
|
quantize_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Shape",
|
8 |
+
"Pow",
|
9 |
+
"Add",
|
10 |
+
"Slice",
|
11 |
+
"MatMul",
|
12 |
+
"Erf",
|
13 |
+
"Where",
|
14 |
+
"Sqrt",
|
15 |
+
"Mul",
|
16 |
+
"Concat",
|
17 |
+
"Constant",
|
18 |
+
"Sub",
|
19 |
+
"Equal",
|
20 |
+
"Conv",
|
21 |
+
"Transpose",
|
22 |
+
"Gather",
|
23 |
+
"Expand",
|
24 |
+
"Softmax",
|
25 |
+
"Reshape",
|
26 |
+
"ConstantOfShape",
|
27 |
+
"Unsqueeze",
|
28 |
+
"Div",
|
29 |
+
"ReduceMean"
|
30 |
+
],
|
31 |
+
"weight_type": "QUInt8"
|
32 |
+
}
|
33 |
+
}
|
34 |
+
}
|