Skip to content

Commit

Permalink
Fixed bug that loaded data in subdirectories twice
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-jeff committed Jul 14, 2024
1 parent e85dadb commit 7544636
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions train2/utils_dope.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,8 @@ def __init__(

def load_data(path,extensions):
imgs = loadimages(path,extensions = extensions)

# Check all the folders in path
for name in os.listdir(str(path)):
imgs += loadimages(path +"/"+name,extensions = extensions)
return imgs

self.imgs = []
for path_look in path_dataset:
self.imgs += load_data(path_look,extensions = self.extensions)
Expand Down

0 comments on commit 7544636

Please sign in to comment.