Skip to content

Commit

Permalink
Bugfixed: re-sample gt_boxes when training
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaoshuai authored Nov 7, 2020
1 parent 0e84f82 commit 7bc7e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcdet/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def prepare_data(self, data_dict):
data_dict=data_dict
)

if len(data_dict['gt_boxes']) == 0:
if self.training and len(data_dict['gt_boxes']) == 0:
new_index = np.random.randint(self.__len__())
return self.__getitem__(new_index)

Expand Down

0 comments on commit 7bc7e55

Please sign in to comment.