Selaa lähdekoodia

Fix generic object detection postprocess

Bobholamovic 2 vuotta sitten
vanhempi
commit
b4c0f12ab2
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      paddlers/tasks/object_detector.py

+ 1 - 1
paddlers/tasks/object_detector.py

@@ -771,7 +771,7 @@ class BaseDetector(BaseModel):
                     dt = bboxes[k]
                     k = k + 1
                     dt = dt.tolist()
-                    if len(dt) == 8:
+                    if len(dt) == 6:
                         # Generic object detection
                         num_id, score, xmin, ymin, xmax, ymax = dt
                         w = xmax - xmin