autorope / donkeycar

Open source hardware and software platform to build a small scale self driving car.
http://www.donkeycar.com
MIT License
3.16k stars 1.3k forks source link

Refactor Image Augmentations/Transformation to use parts #1109

Closed Ezward closed 1 year ago

Ezward commented 1 year ago

Currently image augmentations and transformation are a fixed set. There is no way to add a custom augmentation or transformation without changing core code. We can do better.

This was initiated after talking to a user on Discord that wanted to add Canny edge detection as a transformation. They ended up just hacking the camera part to apply the Canny algorithm on the way out; so they end up with transformed data in their data sets, which is not ideal.

Goal:

Tasks:

I think that is all we need to do. With that in place a user could add code to their manage.py to add a new augmentation or transformation using one of the cv.py parts or a part of their own creation.

PS: this is a way we can fix the imgaug issue as well; https://github.com/autorope/donkeycar/issues/970

Ezward commented 1 year ago

See Branch https://github.com/autorope/donkeycar/tree/1109-refactor-augmentations and PR https://github.com/autorope/donkeycar/pull/1111

Ezward commented 1 year ago

merged PR https://github.com/autorope/donkeycar/pull/1111