autorope / donkeycar

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

1109 refactor augmentations/transformations #1111

Closed Ezward closed 1 year ago

Ezward commented 1 year ago

Issue https://github.com/autorope/donkeycar/issues/1109

Transformations

Use standard parts for image transformations.

Augmentations

augmentations.py

Deep Learning Template

complete.py

Computer Vision Parts

cv.py

This should fix the imgaug bug https://github.com/autorope/donkeycar/issues/970 but that still needs to be tested in a Jetson.

Ezward commented 1 year ago

This works on my Mac with Python 3.8, but the package test fail with;

  Looking for: ['python=3.7', 'numpy==1.23.4', 'h5py', 'pillow', 'opencv', 'matplotlib', 'tornado', 'docopt', 'pandas', 'pylint', 'pytest', 'pytest-cov', 'codecov', 'pip', 'imgaug', 'progress', 'paho-mqtt', 'prettytable', 'pyfiglet', 'mypy', 'pytorch', 'torchvision=0.12', 'torchaudio', 'pytorch-lightning', 'psutil', 'kivy=2.0.0', 'plotly', 'pyyaml', 'fastai', 'pynmea2', 'pyserial', 'utm', 'albumentations', 'python=3.7']

  Could not solve for environment specs
  Encountered problems while solving:
    - package numpy-1.23.4-py310h9638375_0 requires python >=3.10,<3.11.0a0, but none of the providers can be installed

  The environment can't be solved, aborting the operation

Error: The process '/usr/local/miniconda/condabin/mamba' failed with exit code 1
DocGarbanzo commented 1 year ago

I see the CI failing in the pipeline test where a tf tensor to numpy conversion has some problems. Looking in the logs, I see numpy version 1.21 here, whereas our last commit on main was using 1.19, and that ran successfully. We actually might need to pin that. I’m wondering if albumentations are the reason for the numpy upgrade, I will check that. I’m sure its all fine once we are on tf 2.9.

Ezward commented 1 year ago

I replaced kernal -> kernel and KERNAL -> KERNEL. Thank you Colonel Dirk, my spelling is really bad.