Optimize TFJS export on ARM64 (#8946)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
82e8daef72
commit
368abb4cc8
2 changed files with 3 additions and 5 deletions
|
|
@ -32,11 +32,6 @@ RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED
|
|||
RUN python3 -m pip install --upgrade pip wheel
|
||||
RUN pip install --no-cache -e ".[export]"
|
||||
|
||||
# Fix error: `np.object` was a deprecated alias for the builtin `object` when exporting to TensorFlow.js
|
||||
# Here onnxruntime is installed first because in tflite and onnx simplify exports, it will install latest numpy version as a dependency and we need to downgrade it
|
||||
RUN pip install --no-cache onnxruntime
|
||||
RUN pip install --no-cache numpy==1.23.5
|
||||
|
||||
# Creates a symbolic link to make 'python' point to 'python3'
|
||||
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue