LoginSignup
1
3

More than 5 years have passed since last update.

Donkey Car学習(Mac側)

Last updated at Posted at 2018-08-27

関連Qiita

教師データの作成(RaspberryPi側)

$ cd ~/mycar
$ python manage.py drive

controller.png

トレーニングデータは、~/mycar/data以下に保存される。

教師データの学習(Mac側)

教師データをRaspberryPiから、Macにrsyncする。

$ rsync -r pi@192.168.86.41:~/mycar/data/ ~/mycar/data/
$  ls data
tub_01_18-08-27 tub_02_18-08-27

Mac側には、tub_日付のフォルダが教師データ作成の度にふえていく。

$ donkey tubclean .

いらないデータを削除する。

$ python ~/mycar/manage.py train --tub=~/mycar/data/tub_01_18-08-27 --model=./models/mypilot

これで学習開始。

学習済みモデルをRaspberryPiに戻す

$ rsync -r ~/mycar/models/ pi@<your_ip_address>:~/mycar/models/

学習済みモデルでDonkeyを動かす

RaspberryPi側にログイン。

$ python manage.py drive --model ~/mycar/models/mypilot

or

Web画面のmodel & pilotから、autopilotを選ぶ。

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3