forked from microsoft/olive-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsam_mask_point_decoder_qnn_fp16.json
More file actions
84 lines (84 loc) · 2.24 KB
/
sam_mask_point_decoder_qnn_fp16.json
File metadata and controls
84 lines (84 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"input_model": {
"type": "PyTorchModel",
"model_path": "facebook/sam-vit-base",
"model_loader": "sam_mask_point_decoder_load",
"model_script": "user_script.py",
"io_config": {
"input_names": [
"input_points",
"image_embeddings"
],
"output_names": [
"iou_scores",
"pred_masks"
]
},
"dummy_inputs_func": "mask_point_decoder_inputs"
},
"systems": {
"local_system": {
"type": "LocalSystem"
},
"target_system": {
"type": "LocalSystem",
"accelerators": [
{
"execution_providers": [
"QNNExecutionProvider"
]
}
]
}
},
"data_configs": [
{
"name": "latency_data_config",
"user_script": "user_script.py",
"load_dataset_config": {
"type": "local_dataset"
},
"dataloader_config": {
"type": "mask_point_decoder_data_loader",
"batch_size": 1
}
}
],
"evaluators": {
"common_evaluator": {
"metrics": [
{
"name": "latency",
"type": "latency",
"data_config": "latency_data_config",
"sub_types": [
{
"name": "avg",
"priority": 1
}
]
}
]
}
},
"passes": {
"convert": {
"type": "OnnxConversion",
"config": {
"target_opset": 20,
"optimize": true,
"dynamic": false
}
},
"f16": {
"type": "OnnxFloatToFloat16",
"save_as_external_data": true
}
},
"log_severity_level": 0,
"evaluate_input_model": false,
"host": "local_system",
"target": "target_system",
"cache_dir": "cache_olive_mask_point_decoder_fp16",
"output_dir": "model/sam_olive_mask_point_decoder_fp16"
}