xavysp / DexiNed

DexiNed: Dense EXtreme Inception Network for Edge Detection
MIT License
738 stars 157 forks source link

How to label our own dataset and train? #93

Open BlueBlueSkyZZ opened 3 years ago

BlueBlueSkyZZ commented 3 years ago

How to create a dataset similar to BIPED? I labeled my own dataset by labelme.
labelme_json_to_dataset can let my .json file generate a .png file. But the edge line is too wide and the color is red. Should I use another label tool? Or is there a method to set the edge line?

xavysp commented 3 years ago

Hi, the json file generated in Labelme its easy to convert in PNG, if you want I can share my code, but I have to clean a little bite

BlueBlueSkyZZ commented 3 years ago

Thanks for your reply @xavysp. I wonder if the red edge will have a bad effect on the training result, so I want to make the edge line slim and white just like BIPED. Do you mean I should write some code to convert the json file to PNG file instead of using the command tool labelme_json_to_dataset? I don't find the solution to custom the generation of the edges in the command tool labelme_json_to_dataset. I would be grateful if you could share your code.

adnan0819 commented 2 years ago

@xavysp xavysp Hi, sorry to dig this up again. I am also looking to do the same as above i.e.,

  1. Label using LabelMe
  2. Use labelme_json_to_dataset
  3. Now trying to figure out how to make them like BIPED.

Could you please share your code for point 3?

Thank you very much.

xavysp commented 2 years ago

@xavysp xavysp Hi, sorry to dig this up again. I am also looking to do the same as above i.e.,

  1. Label using LabelMe
  2. Use labelme_json_to_dataset
  3. Now trying to figure out how to make them like BIPED.

Could you please share your code for point 3?

Thank you very much.

HI, did you got your GT edge map?

ziyouzheilu commented 11 months ago

Hi, the json file generated in Labelme its easy to convert in PNG, if you want I can share my code, but I have to clean a little bite

I want to do the same thing.Can you share me your code.Thank you very much if you can do it.