Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generating label_data.json #52

Closed
masterLearning opened this issue Feb 5, 2019 · 7 comments
Closed

generating label_data.json #52

masterLearning opened this issue Feb 5, 2019 · 7 comments

Comments

@masterLearning
Copy link

Hello @cardwing

I am currently trying to train the lanenet model with my own dataset but i missing some files.
M current status:

  • I trained successfully the network with the 6 images which are in traning data example directory
    Now i need to train it with my own dataset (I generated images from a simulation program)
    In order to train the network i need additionaly the gt_images_instance and the gt_image_binary of each image.

For that i can use the generate_tusimple_dataset.py file in the tools directory and my files need to be structured as in the tuSimple directory, but my problem is i can not run the file because i dont have the label_data.json . How can i generate the json file with all all the attributes

  • "lanes"
  • "h_samples"
  • "raw_file"
    and, am i doing something wrong or is there perhaps a better way to train the network ?

I thank you in advance for any answer.

@cardwing
Copy link
Owner

cardwing commented Feb 6, 2019

Actually, you can generate the label_data.json according to the instruction of TuSimple dataset (manually generate the file). Since I am not familiar with the label generation process, you can seek help in lanenet repo.

@masterLearning
Copy link
Author

First of all, thank you very much for your response.

What instruction do you mean? In the lane_demo they already use two json files.

The label file that i mean is ls located in the guidlines section.
https://github.com/TuSimple/tusimple-benchmark/blob/master/doc/lane_detection/guideline.md

Did you train the network with your own dataset? If yes, how did you solve the problem?

@cardwing
Copy link
Owner

cardwing commented Feb 7, 2019

I have not trained the network with my own dataset. The json file is used to generate the labels (i.e., semantic segmentation maps which are comprised of 1,2,3...). You can refer to this issue and generate the json file from semantic segmentation outputs.

@masterLearning
Copy link
Author

Is it possible with this pred_json.py file to generate a json file which i can use to generate the gt_images_instance and the gt_image_binary of each image?
In this file a pred_test_SCNN_02_0001_02_6_e01_full.json file is required which i do not have. What is this file ?

Its really important for me to train the network with my own dataset.I appreciate you trying to help me.

@cardwing
Copy link
Owner

pred_json.py is used to generate the corresponding json file from segmentation maps. pred_test_SCNN_02_0001_02_6_e01_full.json is just the output file.

@masterLearning
Copy link
Author

masterLearning commented Feb 10, 2019

@cardwing What do you mean with segmentation maps?
And do you know why in the label_files in tuSimple only the path of the last picture was specified?
What with the pictures 1..19? Does one entry ( "lanes", "h_sample", "raw_file") refer to all 20 pictures in the directory? Please help i am confused.

edit:
It looks like only one 20th photo of each directory was used and the other 19 were ignored. I suppose it is done to produce a larger number of different cases.

With this pred_json.py from #4 it is possible to generate a file for evaluation but not for training. The attributes are not the same :
label_data.json (training)

  • "lanes"
  • "h_samples"
  • "raw_file"

pred_json.py

  • "lanes"
  • "run_time"
  • "raw_file"

Can you modify the script so that its possible to set a directory with the raw pictures as input and as output a json file with the training paramters are generated? It would be awesome.

@cardwing
Copy link
Owner

Segmentation maps are comprised of 1,2,3,... and each number denotes one class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants