Skip to content

Commit

Permalink
Update yolo_training.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bubbliiiing authored Jan 17, 2021
1 parent a569426 commit 5e03500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nets/yolo_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def generate(self, train=True):
if train:
img,y=self.get_random_data(annotation_line, self.image_size[0:2])
else:
img,y=self.get_random_data(annotation_line, self.image_size[0:2], False)
img,y=self.get_random_data(annotation_line, self.image_size[0:2], random=False)

if len(y)!=0:
boxes = np.array(y[:,:4],dtype=np.float32)
Expand Down

0 comments on commit 5e03500

Please sign in to comment.