mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
14 lines
361 B
Plaintext
14 lines
361 B
Plaintext
|
#!/command/with-contenv bash
|
||
|
# shellcheck shell=bash
|
||
|
# Compile YoloV8 ONNX files into ROCm MIGraphX files
|
||
|
|
||
|
for onnx in /config/model_cache/yolov8/*.onnx
|
||
|
do
|
||
|
mxr="${onnx%.onnx}.mxr"
|
||
|
if ! test -f $mxr; then
|
||
|
echo "processing $onnx into $mxr"
|
||
|
/opt/rocm/bin/migraphx-driver compile $onnx --optimize --gpu --enable-offload-copy --binary -o $mxr
|
||
|
fi
|
||
|
done
|
||
|
|