yolo_segmentation icon indicating copy to clipboard operation
yolo_segmentation copied to clipboard

Would you like to figure out how to demo your project?

Open aimhabo opened this issue 6 years ago • 9 comments

I think I can imagine what cfg setting is. and whats the sample label rule do you set? is it a "binary image+src image" for every target? or some rule like "0 2532 12 2624 12 2881 10 3012 10 ..."

aimhabo avatar Sep 17 '18 01:09 aimhabo

Glad to tell you that the command in terminal is: ./darknet segmenter train ~.data ~.cfg ~.weights -gpus 0. Now you should know what is the image couple looks like (an RGB image and 0-1 image only)

ArtyZe avatar Sep 17 '18 09:09 ArtyZe

unnn, maybe I haven't get it...

"Cannot load image "../darknet-mask/3c8bdfdb3.txt" " screenshot from 2018-09-17 21-47-30

I dont know why it loads image from txt. In my disk, darknet-mask/*.txt is the mask file (0 2532 12 2624 12 2881 10 3012 10 ...) 2018-09-17 21-56-28

what should files be?

aimhabo avatar Sep 18 '18 04:09 aimhabo

the input_RGB_image and binary_label_image should be put in the same image, because in the data.c file, the "image load_image_gray(char *path, int w, int h)" function has been changed

ArtyZe avatar Sep 20 '18 05:09 ArtyZe

I use the cityscape dataset , for example, input_RGB_image(aachen_00001_000019_leftImg8bit.png) and the binary_label_image(aachen_00001_000019_gtFine_instanceIds.png) should be put in the same dir,

ArtyZe avatar Sep 20 '18 06:09 ArtyZe

@aimhabo Hi, I have recently started dealing with this repo and I don't get it how I can organize my data knowing that I have images and ground truth(masks) files?? 55864938-582a9e00-5b75-11e9-8605-41b90a710dc1 55864928-53fe8080-5b75-11e9-9d15-d20d88b7e5e5 what are darknet-labels(rectangles) and darknet-maks(seg.txt ) files??? how i can figure them out ??

can you help me

hakS07 avatar Apr 11 '19 09:04 hakS07

@essalahsouad just put RGB image and mask image in same file folder. darknet-labels is the detection-task label of bounding-box darknet-mask is the segment-task label of rle-mask Those things have no relationship with this project.

and about the rule of mask image, the author just updated the README and you can read it.

aimhabo avatar Apr 12 '19 01:04 aimhabo

@ArtyZe @aimhabo I followed the steps in the readme for the training 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 10:04 hakS07

Hi, I'am having the same problem as @essalahsouad and all my path setting was fine, 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