DonkeyCar for Jetson Nano-Train Data

From Waveshare Wiki
Jump to: navigation, search

Guides of DonkeyCar

Train data

  • In a new terminal session on your host PC use rsync to copy your cars folder from the Jetson Nano.
rsync -rv --show-progress --partial pi@<your_ip_address>:~/mycar/data/  ~/mycar/data/

<your_ip_address> should be the IP address of your Jetson Nano

  • Train model
python ~/mycar/ train --tub <tub folder names comma separated> --model ./models/mypilot.h5

You should change the <tub folder names comma separated> to the correct path, for example, ./data/* or ./data/tub_?_20-01-18
DonkeyCar for Jetson Nano 7-1.png

  • As the training time will be long, you need to be patient.
  • After the training is completed, the training data model will be obtained, and we will transfer the training model back to jetson nano to test whether the trained model can drive on autonomous patrol.
rsync -rv --show-progress --partial ~/mycar/models/ pi@<your_ip_address>:~/mycar/models/