mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 22:36:36 +00:00
243b69656b
- Modified `.gitignore` to reflect the new path for test results. - Updated `docker-compose.test.yml` to mount the correct test results directory. - Adjusted `Dockerfile.test` to set the `PYTHONPATH` and ensure test results are saved in the updated location. - Added `boto3` and `netron` to `requirements-test.txt` to support new functionalities. - Updated `pytest.ini` to include the new `pythonpath` for test discovery. These changes streamline the testing process and ensure compatibility with the updated directory structure.
37 lines
1.8 KiB
Bash
37 lines
1.8 KiB
Bash
# Install proper ssh key into your github acc, you should have access to this repo https://github.com/azaion/autopilot
|
|
|
|
# ONNX runtime
|
|
wget https://github.com/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-linux-x64-1.18.0.tgz
|
|
sudo tar xf onnxruntime-linux-x64-1.18.0.tgz -C /opt
|
|
rm onnxruntime-linux-x64-1.18.0.tgz
|
|
|
|
# ffmpeg & mediamtx
|
|
sudo apt install -y ffmpeg
|
|
wget https://github.com/bluenviron/mediamtx/releases/download/v1.9.1/mediamtx_v1.9.1_linux_arm64v8.tar.gz
|
|
mkdir mediamtx
|
|
tar xf mediamtx_v1.9.1_linux_arm64v8.tar.gz -C mediamtx
|
|
rm mediamtx_v1.9.1_linux_arm64v8.tar.gz
|
|
|
|
# openCV & autopilot
|
|
sudo apt install -y qmake6
|
|
sudo apt install -y libopencv-highgui-dev libopencv-video-dev libopencv-imgproc-dev libopencv-dev librga-dev libstb-dev libturbojpeg0-dev libqt6serialport6-dev
|
|
|
|
sudo wget https://github.com/rockchip-linux/rknn-toolkit2/raw/refs/heads/master/rknpu2/runtime/Linux/librknn_api/aarch64/librknnrt.so -P /usr/local/lib/
|
|
echo 'export LD_LIBRARY_PATH=/usr/local/lib' >> ~/.bashrc
|
|
source ~/.bashrc
|
|
|
|
sudo wget https://raw.githubusercontent.com/rockchip-linux/rknn-toolkit2/refs/heads/master/rknpu2/runtime/Linux/librknn_api/include/rknn_api.h -P /usr/local/include
|
|
sudo wget https://raw.githubusercontent.com/rockchip-linux/rknn-toolkit2/refs/heads/master/rknpu2/runtime/Linux/librknn_api/include/rknn_custom_op.h -P /usr/local/include
|
|
sudo wget https://raw.githubusercontent.com/rockchip-linux/rknn-toolkit2/refs/heads/master/rknpu2/runtime/Linux/librknn_api/include/rknn_matmul_api.h -P /usr/local/include
|
|
|
|
git clone https://github.com/azaion/autopilot
|
|
cd ~/autopilot/misc/rtsp_ai_player
|
|
mkdir build
|
|
cd build
|
|
|
|
# Modify ~/autopilot/misc/rtsp_ai_player/aiengineconfig.h and change 192.168.168.91 to IP address of RTSP source
|
|
# only after that make a build:
|
|
qmake6 CONFIG+=opi5 .. && make -j8
|
|
|
|
|