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

images not being saved #21

Open fawazsammani opened 6 years ago

fawazsammani commented 6 years ago

Hi. Thank you for this tutorial. I am actually running the detection.py file, the output of the images describing their labels is showing, however the images with the bounding boxes are not being saved in the det folder. I debugged the code part by part. I corrected what is needed and what was raised in previous issues. However, i still can't get the images saved. May i know what's the problem?

Dmaner commented 6 years ago

ME TOO

ghost commented 6 years ago

After try and error i found out its because of the wrong path in line 203

detnames = pd.Series(imlist).apply(lambda x: "{}/det{}".format(args.det,x.split("/")[-1]))

then i noticed the issue is already answered in the other YoloV3 Repository https://github.com/ayooshkathuria/pytorch-yolo-v3/issues/38

you only have to change

detnames = pd.Series(imlist).apply(lambda x: "{}/det{}".format(args.det,x.split("\\")[-1]))

Then it worked in my case

ninthtide commented 5 years ago

Brilliant - many thanks Stevbeef, solved my problem too

SSJIACV commented 5 years ago

many thanks Stevbeef, solved my problem too

rakeshsalian commented 4 years ago

many thanks Stevbeef, highly appriciate your post.