Skip to content

Commit b349ef0

Browse files
committed
fix opencv issue
1 parent ec4c3ed commit b349ef0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ def display(preds, imgs, obj_list, imshow=True, imwrite=False):
133133
if len(preds[i]['rois']) == 0:
134134
continue
135135

136+
imgs[i] = imgs[i].copy()
137+
136138
for j in range(len(preds[i]['rois'])):
137139
(x1, y1, x2, y2) = preds[i]['rois'][j].astype(np.int)
138140
obj = obj_list[preds[i]['class_ids'][j]]

0 commit comments

Comments
 (0)