diff --git a/utils/datasets.py b/utils/datasets.py index b147d25d..9ec63800 100755 --- a/utils/datasets.py +++ b/utils/datasets.py @@ -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]