訓練:Ubuntu
sudo apt install nvidia-driver-535 |
sudo reboot |
nvidia-smi |
sudo apt install nvidia-cuda-toolkit |
sudo apt install nvidia-cudnn |
sudo reboot |
sudo apt install python3.10-venv |
python3 -m venv --system-site-packages ~/venv |
source ~/venv/bin/activate |
pip install --upgrade pip |
pip install tensorflow==2.10 |
pip install matplotlib |
sudo reboot |
mkdir ~/AI_Driver |
cd ~/AI_Driver |
wget http://ma2.la.coocan.jp/AI_Driver/webot/download/train.py |
wget https://raw.githubusercontent.com/mituhiromatuura/AI_Driver/main/maketensor.py |
~/.bashrc の最後に以下を追加
source ~/venv/bin/activate |
cd ~/AI_Driver |
車のラズパイから教師データを転送したら
time python ./train.py 引数1(データパス) 引数2(エポック数) |