mirror of
https://github.com/huchenlei/Depth-Anything.git
synced 2026-05-01 04:41:13 +00:00
Initial commit
This commit is contained in:
1
run.py
1
run.py
@@ -62,6 +62,7 @@ if __name__ == '__main__':
|
|||||||
if args.img_path.endswith('txt'):
|
if args.img_path.endswith('txt'):
|
||||||
with open(args.img_path, 'r') as f:
|
with open(args.img_path, 'r') as f:
|
||||||
filenames = f.read().splitlines()
|
filenames = f.read().splitlines()
|
||||||
|
filenames = [os.path.join(args.img_path, filename) for filename in filenames]
|
||||||
else:
|
else:
|
||||||
filenames = [args.img_path]
|
filenames = [args.img_path]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user