mirror of
https://github.com/luguoyixiazi/test_nine.git
synced 2025-12-06 14:52:49 +08:00
优化推理,模型更新,镜像重新打包
This commit is contained in:
@@ -280,7 +280,7 @@ def predict_onnx_dfine(image,draw_result=False):
|
||||
rebuild_color[class_id] = colors[i % len(colors)]
|
||||
result = {k: [] for k in unique_labels}
|
||||
for i, box in enumerate(filtered_boxes):
|
||||
if box[3]>160 and box[4] < 45:
|
||||
if box[2]>160 and box[3] < 45:
|
||||
continue
|
||||
label_val = filtered_labels[i]
|
||||
class_id = int(label_val)
|
||||
|
||||
Reference in New Issue
Block a user