Closed xiaoweiChen closed 4 years ago
https://github.com/ayooshkathuria/YOLO_v3_tutorial_from_scratch/blob/8264dfba39a866998b8936a24133f41f12bfbdb7/detect.py#L203
This line is right for Mac or Linux. There get wrong path under Windows.
just change : 1 det_names = pd.Series(imlist).apply(lambda x: "{}/det_{}".format(args.det,x.split(os.sep)[-1])) 2 and add import os at the top of file
det_names = pd.Series(imlist).apply(lambda x: "{}/det_{}".format(args.det,x.split(os.sep)[-1]))
import os
All OSes would be running well.
https://github.com/ayooshkathuria/YOLO_v3_tutorial_from_scratch/blob/8264dfba39a866998b8936a24133f41f12bfbdb7/detect.py#L203
This line is right for Mac or Linux. There get wrong path under Windows.
just change : 1
det_names = pd.Series(imlist).apply(lambda x: "{}/det_{}".format(args.det,x.split(os.sep)[-1]))
2 and addimport os
at the top of fileAll OSes would be running well.