Replace path.absolute() with path.resolve() (#4763)
This commit is contained in:
1 parent
cd810c8286
commit
c47be26f34
11 files changed
+11
-11
No files matched your search
+1
-1
@@ -156,7 +156,7 @@ class _RepeatSampler(object):
|
||||
|
||||
class LoadImages: # for inference
|
||||
def __init__(self, path, img_size=640, stride=32, auto=True):
|
||||
p = str(Path(path).absolute()) # os-agnostic absolute path
|
||||
p = str(Path(path).resolve()) # os-agnostic absolute path
|
||||
if '*' in p:
|
||||
files = sorted(glob.glob(p, recursive=True)) # glob
|
||||
elif os.path.isdir(p):
|
||||
|
||||
Reference in new issue
Block a user