inference_gfpgan.py. Use os.sep to search for pathes #226

Open
opened 2026-01-29 21:45:52 +00:00 by claunia · 0 comments
Owner

Originally created by @Micha10 on GitHub (Aug 9, 2022).

If you are running under Windows, the code in line 49 will not work.
if args.input.endswith('/'):
Please use os.sep. Under Windows it will return '\'. with linux it will return '/'

Originally created by @Micha10 on GitHub (Aug 9, 2022). If you are running under Windows, the code in line 49 will not work. ` if args.input.endswith('/'): ` Please use os.sep. Under Windows it will return '\\'. with linux it will return '/'
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#226