Upload folder using huggingface_hub
Browse files- config.json +52 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- preprocessor_config.json +25 -0
- quantize_config.json +39 -0
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_commit_hash": "c495ca2d781fb76fc1722005fd402ebcc304c173",
|
3 |
+
"_name_or_path": "Intel/dpt-large",
|
4 |
+
"architectures": [
|
5 |
+
"DPTForDepthEstimation"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"auxiliary_loss_weight": 0.4,
|
9 |
+
"backbone_config": null,
|
10 |
+
"backbone_featmap_shape": null,
|
11 |
+
"backbone_out_indices": [
|
12 |
+
5,
|
13 |
+
11,
|
14 |
+
17,
|
15 |
+
23
|
16 |
+
],
|
17 |
+
"fusion_hidden_size": 256,
|
18 |
+
"head_in_index": -1,
|
19 |
+
"hidden_act": "gelu",
|
20 |
+
"hidden_dropout_prob": 0.0,
|
21 |
+
"hidden_size": 1024,
|
22 |
+
"image_size": 384,
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"intermediate_size": 4096,
|
25 |
+
"is_hybrid": false,
|
26 |
+
"layer_norm_eps": 1e-12,
|
27 |
+
"model_type": "dpt",
|
28 |
+
"neck_hidden_sizes": [
|
29 |
+
256,
|
30 |
+
512,
|
31 |
+
1024,
|
32 |
+
1024
|
33 |
+
],
|
34 |
+
"neck_ignore_stages": [],
|
35 |
+
"num_attention_heads": 16,
|
36 |
+
"num_channels": 3,
|
37 |
+
"num_hidden_layers": 24,
|
38 |
+
"patch_size": 16,
|
39 |
+
"qkv_bias": true,
|
40 |
+
"readout_type": "project",
|
41 |
+
"reassemble_factors": [
|
42 |
+
4,
|
43 |
+
2,
|
44 |
+
1,
|
45 |
+
0.5
|
46 |
+
],
|
47 |
+
"semantic_classifier_dropout": 0.1,
|
48 |
+
"semantic_loss_ignore_index": 255,
|
49 |
+
"transformers_version": "4.18.0.dev0",
|
50 |
+
"use_auxiliary_head": true,
|
51 |
+
"use_batch_norm_in_fusion_residual": false
|
52 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68890009c34e0c888054ad7ec323a415288ff4392eca939206037210667cfb33
|
3 |
+
size 1367985007
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2baf25a03652c200b8ffe4236a81b13a6dbe02bee2181b2978c2fb91273e6fd
|
3 |
+
size 353082149
|
preprocessor_config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"ensure_multiple_of": 1,
|
6 |
+
"feature_extractor_type": "DPTFeatureExtractor",
|
7 |
+
"image_mean": [
|
8 |
+
0.5,
|
9 |
+
0.5,
|
10 |
+
0.5
|
11 |
+
],
|
12 |
+
"image_processor_type": "DPTFeatureExtractor",
|
13 |
+
"image_std": [
|
14 |
+
0.5,
|
15 |
+
0.5,
|
16 |
+
0.5
|
17 |
+
],
|
18 |
+
"keep_aspect_ratio": false,
|
19 |
+
"resample": 2,
|
20 |
+
"rescale_factor": 0.00392156862745098,
|
21 |
+
"size": {
|
22 |
+
"height": 384,
|
23 |
+
"width": 384
|
24 |
+
}
|
25 |
+
}
|
quantize_config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Pow",
|
8 |
+
"Add",
|
9 |
+
"Resize",
|
10 |
+
"ConstantOfShape",
|
11 |
+
"Unsqueeze",
|
12 |
+
"Sub",
|
13 |
+
"MatMul",
|
14 |
+
"Expand",
|
15 |
+
"Concat",
|
16 |
+
"Slice",
|
17 |
+
"Sqrt",
|
18 |
+
"Constant",
|
19 |
+
"Squeeze",
|
20 |
+
"ConvTranspose",
|
21 |
+
"Where",
|
22 |
+
"Shape",
|
23 |
+
"Conv",
|
24 |
+
"Reshape",
|
25 |
+
"Relu",
|
26 |
+
"Div",
|
27 |
+
"Erf",
|
28 |
+
"Transpose",
|
29 |
+
"Softmax",
|
30 |
+
"Cast",
|
31 |
+
"Gather",
|
32 |
+
"Mul",
|
33 |
+
"Equal",
|
34 |
+
"ReduceMean"
|
35 |
+
],
|
36 |
+
"weight_type": "QUInt8"
|
37 |
+
}
|
38 |
+
}
|
39 |
+
}
|