Explorar el Código

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

5.0
Glenn Jocher hace 4 años
padre
commit
9c0efdde9f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      utils/datasets.py

+ 1
- 1
utils/datasets.py Ver fichero

@@ -110,7 +110,7 @@ class LoadImages: # for inference
p = str(Path(path)) # os-agnostic
p = os.path.abspath(p) # absolute path
if '*' in p:
files = sorted(glob.glob(p)) # glob
files = sorted(glob.glob(p, recursive=True)) # glob
elif os.path.isdir(p):
files = sorted(glob.glob(os.path.join(p, '*.*'))) # dir
elif os.path.isfile(p):

Cargando…
Cancelar
Guardar