darknet-yolo-segmentation icon indicating copy to clipboard operation
darknet-yolo-segmentation copied to clipboard

cannot load image "*****.txt"

Open hakS07 opened this issue 5 years ago • 4 comments

@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

hakS07 avatar Apr 23 '19 19:04 hakS07

@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.

zhengshoujian avatar Apr 24 '19 01:04 zhengshoujian

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

abdou31 avatar Apr 30 '19 08:04 abdou31

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

chejulien avatar Aug 19 '19 06:08 chejulien

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

chejulien avatar Aug 20 '19 01:08 chejulien