输出模型imgsz参数添加
This commit is contained in:
@ -360,7 +360,8 @@ def Export_model_RODY(params_str):
|
||||
exp_inputPath = params.get('exp_inputPath').value # 模型路径
|
||||
print('输入模型:', exp_inputPath)
|
||||
exp_device = params.get('device').value
|
||||
modellist = Start_Model_Export(exp_inputPath, exp_device)
|
||||
imgsz = params.get('imgsz').value
|
||||
modellist = Start_Model_Export(exp_inputPath, exp_device, imgsz)
|
||||
exp_outputPath = exp_inputPath.replace('pt', 'zip') # 压缩文件
|
||||
print('模型路径:',exp_outputPath)
|
||||
zipf = zipfile.ZipFile(exp_outputPath, 'w')
|
||||
@ -437,7 +438,7 @@ def returnDetectParams():
|
||||
{"index": 1, "name": "outputPath", "value": 'E:/aicheck/data_set/11442136178662604800/val_results/',
|
||||
"description": '输出结果路径',
|
||||
"default": './app/maskrcnn/datasets/M006B_waibi/res', "type": "S", 'show': False},
|
||||
{"index": 0, "name": "modPath", "value": "E:/alg_demo-master/alg_demo/app/yolov5/圆孔_123_RODY_1_640.pt",
|
||||
{"index": 2, "name": "modPath", "value": "E:/alg_demo-master/alg_demo/app/yolov5/圆孔_123_RODY_1_640.pt",
|
||||
"description": '模型路径', "default": "./app/maskrcnn/saved_model/test.pt", "type": "S", 'show': False},
|
||||
{"index": 3, "name": "device", "value": "0", "description": '推理核', "default": "cpu", "type": "S",
|
||||
'show': False},
|
||||
@ -455,7 +456,9 @@ def returnDownloadParams():
|
||||
"default": 'E:/alg_demo-master/alg_demo/app/yolov5/圆孔_123_RODY_1_640.pt/',
|
||||
"type": "S", 'show': False},
|
||||
{"index": 1, "name": "device", "value": 'gpu', "description": 'CPU或GPU', "default": 'gpu', "type": "S",
|
||||
'show': False}
|
||||
'show': False},
|
||||
{"index": 2, "name": "imgsz", "value": 640, "description": '图像大小', "default": 640, "type": "I",
|
||||
'show': True}
|
||||
]
|
||||
params_str = json.dumps(params_list)
|
||||
return params_str
|
||||
|
Reference in New Issue
Block a user