Skip to content

Commit

Permalink
Remove dir that shouldn't be set
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdawkins committed Jul 14, 2023
1 parent dc9b957 commit 3c547a4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/pytorch/cutler/cutler_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,6 @@ def add_data_from_disk( self, categories, train_files, train_dets, test_files, t

for index in range(num_images):
filename = split[index]
if not self.image_root:
self.image_root = os.path.dirname(filename) # TODO: there might be a better way to get this?
img = mmcv.image.imread(filename)
height, width = img.shape[:2]
targets = train_dets[index] if is_train else test_dets[index]
Expand Down

0 comments on commit 3c547a4

Please sign in to comment.