zhengshoujian / darknet-yolo-segmentation

This project is based on darknet to get image segmentation
104 stars 25 forks source link

cannot load image "*****.txt" #8

Open hakS07 opened 5 years ago

hakS07 commented 5 years ago

@zhengshoujian I followed this steps for trainging the pretrained model on my dataset 1)put label images(0-1) and original images(RGB) together:(_seg.bmp+_img.jpg) Capture du 2019-04-23 10-53-26

2)modified in find_replace fonction ( find_replace(labelpath, "_img.jpg", "_seg.bmp", labelpath);) Capture du 2019-04-23 10-52-43 3) generate the train.list file(path for the RGB image) Capture du 2019-04-23 11-29-25

4)generate the .data file Capture du 2019-04-23 10-57-17 5)modified in .cfg file Capture du 2019-04-23 10-58-55 6) start train !./darknet segmenter train data/obj.data cfg/segment.cfg segment.backup -gpus 0. //////////But i got an error

cannot load image "/content/yolo_segmentation/project/C39_S1_I8_img.txt"
STB Reason:can't fopen

Any help, please

zhengshoujian commented 5 years ago

@essalahsouad, cannot load image "/content/yolo_segmentation/project/C39_S1_I8_img.txt", that means "/content/yolo_segmentation/project/C39_S1_I8_img.txt" should be a picture, and this error belong to coding debug, you can use some command like "grep -rn "cannot load image"" to find where the source of error is.

abdou31 commented 5 years ago

I have the same problem . How to solve this ? Did you make an update for project that solving this bug ?

chejulien commented 5 years ago

I have the same problem, did you guys figured out what's going on here?

chejulien commented 5 years ago

Problem solved, the root cause is find_replace in the image load_image_gray function was trying to change my path name...