Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,14 @@ jobs:
echo "Invalid luxonis-ml ref: ${ML_REF}" >&2
exit 1
fi
ML_INSTALL_COMMAND="pip uninstall luxonis-ml -y && \
pip install \
# Each image pins the NumPy that its vendor tools were built
# against. RVC4 holds NumPy 1.x, because `snpe-onnx-to-dlc` is
# a C extension that reads garbage under the 2.x ABI. A plain
# `--force-reinstall` of luxonis-ml pulls NumPy 2.x in and
# corrupts the conversion.
ML_INSTALL_COMMAND="python -c \"import numpy; open('/tmp/numpy-constraint.txt', 'w').write('numpy==' + numpy.__version__)\" && \
pip uninstall luxonis-ml -y && \
PIP_CONSTRAINT=/tmp/numpy-constraint.txt pip install \
\"luxonis-ml[data,nn-archive] @ git+https://github.com/luxonis/luxonis-ml.git@${ML_REF}\" \
--upgrade --force-reinstall &&"
else
Expand Down
Loading