Add new point cloud augmentation - Random Translation #36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
The current repo doesn't support Random Translation augmentation methods.
This PR adds Random Translation methods here:
Complex-YOLOv4-Pytorch/src/data_process/transformation.py
Lines 376 to 403 in ffb67cd
Why
It's reasonable since self-driving car requires a fixed view (the car has to be centered bottom of the image)
However, other applications of 3D point clouds object detection may have different settings such as industrial factories and warehouses like what I tried to do. We may need to augment using translation to increase the diversity of our limited dataset.
Testing
We will make changes to
train_lidar_transforms
here:Complex-YOLOv4-Pytorch/src/data_process/kitti_dataloader.py
Lines 22 to 28 in a712f52
After changing, run
1) No Augmentation
2) Random_Rotate (Existing augmentation)
3) Random_Scaling (Existing augmentation)
You can see that's it's zoomed out
4) Random_Translate (Added in this PR)
You can see the image is translated, the view shifts upwards, no longer starting from the car