AI 自動運転 DonkeyCar Ubuntu
sudo apt install openssh-server |
exit |
sudo apt update |
sudo apt upgrade |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh |
bash ./Miniconda3-latest-Linux-x86_64.sh |
exit |
mkdir projects |
cd projects/ |
sudo apt install git |
git clone https://github.com/autorope/donkeycar |
cd donkeycar/ |
git checkout main |
conda install mamba -n base -c conda-forge |
mamba env create -f install/envs/ubuntu.yml |
conda activate donkey |
pip install -e .[pc] |
conda install tensorflow-gpu==2.2.0 |
donkey createcar --path ~/mycar |
cd ~/mycar |
rm -r ./data/* |
rm -r ./models/* |
rsync -rvt --progress --partial --delete pi@ラズパイのHostname.local:~/mycar/myconfig.py ./ |
rsync -rvt --progress --partial --delete pi@ラズパイのHostname.local:~/mycar/data/tub_x_yy-mm-dd ./data/ |
または |
rsync -rvt --progress --partial --delete pi@ラズパイのIPアドレス:~/mycar/myconfig.py ./ |
rsync -rvt --progress --partial --delete pi@ラズパイのIPアドレス:~/mycar/data/tub_x_yy-mm-dd ./data/ |
export TF_FORCE_GPU_ALLOW_GROWTH=true |
donkey train --tub ./data/tub* --model ./models/mypilot.h5 |
donkey ui |
rsync -rvt --progress --partial ./models/ pi@ラズパイのHostname.local:~/mycar/models/ |
または |
rsync -rvt --progress --partial ./models/ pi@ラズパイのIPアドレス:~/mycar/models/ |