ayooshkathuria / YOLO_v3_tutorial_from_scratch

Accompanying code for Paperspace tutorial series "How to Implement YOLO v3 Object Detector from Scratch"
https://blog.paperspace.com/how-to-implement-a-yolo-object-detector-in-pytorch/
2.32k stars 725 forks source link

Store image path adapt to all OSes #25

Closed xiaoweiChen closed 4 years ago

xiaoweiChen commented 6 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

All OSes would be running well.