This commit is contained in:
Glenn Jocher 2019-07-30 15:15:23 +02:00
parent 65d70fca78
commit 62d4a74052
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class LoadImages: # for inference
def __init__(self, path, img_size=416):
files = []
if os.path.isdir(path):
files = sorted(glob.glob('%s/*.*' % path))
files = sorted(glob.glob(os.path.join(path, '*.*')))
elif os.path.isfile(path):
files = [path]