YOLO_v3_tutorial_from_scratch icon indicating copy to clipboard operation
YOLO_v3_tutorial_from_scratch copied to clipboard

images not being saved

Open fawazsammani opened this issue 7 years ago • 5 comments

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?

fawazsammani avatar Jul 15 '18 10:07 fawazsammani

ME TOO

Dmaner avatar Aug 02 '18 07:08 Dmaner

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

det_names = 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

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

Then it worked in my case

ghost avatar Aug 03 '18 07:08 ghost

Brilliant - many thanks Stevbeef, solved my problem too

ninthtide avatar Oct 09 '18 00:10 ninthtide

many thanks Stevbeef, solved my problem too

SSJIACV avatar Jun 05 '19 15:06 SSJIACV

many thanks Stevbeef, highly appriciate your post.

rakeshsalian avatar Mar 18 '20 07:03 rakeshsalian