Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Commit 22c12fa

Browse files
committed
tf: fix strange ground truth values issue
close: #38
1 parent 483443f commit 22c12fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py_src/yolov4/tf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def save_dataset_for_mAP(
317317

318318
for i in range(num_sample):
319319
# image_path, [[x, y, w, h, class_id], ...]
320-
_dataset = data_set.dataset[i % max_dataset_size]
320+
_dataset = data_set.dataset[i % max_dataset_size].copy()
321321

322322
if images_optional:
323323
image_path = path.join(img_dir_path, "image_{}.jpg".format(i))

0 commit comments

Comments
 (0)