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 724 forks source link

why no images saved in the directory named 'det' #72

Open detectivelinx opened 1 year ago

detectivelinx commented 1 year ago

The 'detect.py' will create a directory named 'det', but no images are saved there. why ? there are no errors in the program. I really need your help

detectivelinx commented 1 year ago

i fixed it !

BlueDyee commented 11 months ago

For Linux OS: the paths looks like: "Yolov3/imgs/eagle.jpg" But for Windows OS: the paths looks like: "Yolov3\imgs\eagle.jpg"

So we need to change the code in detect.py From: detnames = pd.Series(imlist).apply(lambda x: "{}/det{}".format(args.det,x.split("/")[-1])) To: detnames = pd.Series(imlist).apply(lambda x: "{}/det{}".format(args.det,x.split("\")[-1]))