瀏覽代碼

fix attribute pipline save image (#2830)

zhangyubo0722 10 月之前
父節點
當前提交
63fd9e679b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      paddlex/inference/pipelines_new/attribute_recognition/result.py

+ 1 - 1
paddlex/inference/pipelines_new/attribute_recognition/result.py

@@ -87,4 +87,4 @@ class AttributeRecResult(BaseCVResult):
             for box in self["boxes"]
         ]
         image = draw_attribute_result(image, boxes)
-        return image
+        return {"res": image}