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

PathDet Dataset Curation - CULane #14

Closed
m-zain-khawaja opened this issue Dec 13, 2024 · 3 comments
Closed

PathDet Dataset Curation - CULane #14

m-zain-khawaja opened this issue Dec 13, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@m-zain-khawaja
Copy link
Collaborator

m-zain-khawaja commented Dec 13, 2024

Description

Parse the CULane Dataset which can be downloaded from this link to create a dataset comprising input images in PNG format and a single drivable path as the ground truth, derived as the mid-line between the left/right edges of the ego lane.

Please create a script called process_culane.py in this folder (https://github.com/autowarefoundation/autoware.privately-owned-vehicles/tree/main/PathDet/create_path/CULane) which is responsible for creating the ground truth and saving the data.

The ground truth drivable path information should be stored as a list keypoints defining the path in a JSON format. The drivable path keypoints should be sampled with a vertical (y image axis) displacement of 10 pixels to match the ground truth format used in other datasets.

Please ensure that keypoints are stored in relative coordinates, where the top left-most corner of the image is 0,0 and the bottom right-most corner of the image is 1,1, and all other coordinates are floating point values in the range (0,1) for x,y directions.

Please ensure ground truth images are stored in PNG format

Please also save a semantic drivable path mask which is drawn upon the input RGB image alongside the ground truth drivable area for data auditing purposes as well as a binary drivable path mask in PNG format, where drivable path pixels are assigned a value of 255, and non-drivable path pixels are assigned a value of 0.

Data Summary:
RGB image in PNG Format
Drivable path keypoints in JSON Format
Binary Drivable Path Mask in PNG format
Semantic Drivable Path Mask draw on top of RGB image in PNG format (not used during training, only for data auditing purposes)

Note

Please work on the path-det-dataset-curation branch

@TranHuuNhatHuy
Copy link
Contributor

TranHuuNhatHuy commented Dec 16, 2024

2024/12/16

  • Crop out bottom part containing the car (should be 190 pixels height, so we have 400 px in height remaining, but please test it carefully).

  • Crop width left and right so new width : new height = 2 : 1.

  • Update relative coords to account for new image size.

  • Temporal downsampling by a factor of 5 (basically take 1 skip 4).

  • Refactor the JSON and output dir structure as in slides p. 22.
    image

@TranHuuNhatHuy
Copy link
Contributor

TranHuuNhatHuy commented Dec 23, 2024

2024/12/23

Housekeeping minor stuffs

  • Bottom crop : 160.
  • Adjust horizontal crop to be 2:1 ratio.
  • Make it default arg.
  • Default sampling rate to 5.
  • Also update README.md

Post-processing

  • Data audit
  • Kaggle-ing it the same way with TuSimple

@m-zain-khawaja
Copy link
Collaborator Author

Completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants