donkeycar icon indicating copy to clipboard operation
donkeycar copied to clipboard

How can I train my donkeycar on jetson nano

Open lee-junho21 opened this issue 4 years ago • 4 comments

I'm using Jetpack4.4.1 on my jetson nano. And I installed donkey car 4.1 version. After then, I could drive my donkey car with ps4 controller. But, when I try to train my donkey car, I faced a problem. On jetson nano, I tried the train code

donkey train --tub ./mycar/data --model ./models/mypilot.h5 --type=linear

Then, Error occurs. like

AttributeError: 'NoneType' object has no attribute 'DEFAULT_AI_FRAMEWORK'

So, I added DEFAULT_AI_FRAMEWORK = tensorflow in myconfig.py Then, ModuleNotFoundError: No module named 'imgaug'

I also tried this code on my window computer, but I had same problem. How can I solve this problem. I really hope to train my donkeycar...

lee-junho21 avatar Feb 03 '21 12:02 lee-junho21

Hi @lee-junho21, the command you are using looks wrong to me.

Try the command for example as follows: python train.py --tubs=data/tub_2_21-01-16/,data/tub_1_21-01-16/,data/tub_3_21-01-16/ --model models/mypilot.h5

For some more details how to train on a jetson nano (what is not the best way but it is possible) I have published a pdf file describing the setup on a jetson nano and how to train and run a neural net on the jetson nano. Ingmars Donkey Car – E-Book

Or visit the project in the discord channel to get some help: discord server

Best,

Ingmar

custom-build-robots avatar Feb 03 '21 20:02 custom-build-robots

@lee-junho21,

DEFAULT_AI_FRAMEWORK = 'tensorflow'

TCIII avatar Aug 01 '21 23:08 TCIII

Did you resolve the imaaug problem???

kory2000pr avatar Sep 06 '21 00:09 kory2000pr

The library we use for image augmentations does not work correctly on Jetson Nano, so we do not install it on the Nano, that is why you are getting that error. Unfortunately the maintainer of imgaug has said that he will not fix it. https://github.com/autorope/donkeycar/issues/970

We have a separate issue to completely refactor the image augmentations and we can address this issue when we do that. https://github.com/autorope/donkeycar/issues/1109

Ezward avatar Mar 04 '23 04:03 Ezward