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

How can I train my donkeycar on jetson nano #783

Open
lee-junho21 opened this issue Feb 3, 2021 · 4 comments
Open

How can I train my donkeycar on jetson nano #783

lee-junho21 opened this issue Feb 3, 2021 · 4 comments

Comments

@lee-junho21
Copy link

lee-junho21 commented Feb 3, 2021

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...

@custom-build-robots
Copy link

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

@TCIII
Copy link
Contributor

TCIII commented Aug 1, 2021

@lee-junho21,

DEFAULT_AI_FRAMEWORK = 'tensorflow'

@kory2000pr
Copy link

Did you resolve the imaaug problem???

@Ezward
Copy link
Contributor

Ezward commented Mar 4, 2023

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. #970

We have a separate issue to completely refactor the image augmentations and we can address this issue when we do that. #1109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants