glenn-jocher commited on
Commit
9c0efdd
1 Parent(s): c8e5181

glob.glob(recursive=True) search (#917)

Browse files
Files changed (1) hide show
  1. utils/datasets.py +1 -1
utils/datasets.py CHANGED
@@ -110,7 +110,7 @@ class LoadImages: # for inference
110
  p = str(Path(path)) # os-agnostic
111
  p = os.path.abspath(p) # absolute path
112
  if '*' in p:
113
- files = sorted(glob.glob(p)) # glob
114
  elif os.path.isdir(p):
115
  files = sorted(glob.glob(os.path.join(p, '*.*'))) # dir
116
  elif os.path.isfile(p):
 
110
  p = str(Path(path)) # os-agnostic
111
  p = os.path.abspath(p) # absolute path
112
  if '*' in p:
113
+ files = sorted(glob.glob(p, recursive=True)) # glob
114
  elif os.path.isdir(p):
115
  files = sorted(glob.glob(os.path.join(p, '*.*'))) # dir
116
  elif os.path.isfile(p):