mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
Fix mmengine mmcv version
This commit is contained in:
parent
c74531de63
commit
9263c7f604
@ -3,7 +3,8 @@ ARG PYTHON_VERSION=3.7
|
|||||||
ARG TORCH_VERSION=1.10.0
|
ARG TORCH_VERSION=1.10.0
|
||||||
ARG TORCHVISION_VERSION=0.11.0
|
ARG TORCHVISION_VERSION=0.11.0
|
||||||
ARG ONNXRUNTIME_VERSION=1.8.1
|
ARG ONNXRUNTIME_VERSION=1.8.1
|
||||||
ARG MMCV_VERSION
|
ARG MMCV_VERSION=">=2.0.0rc2,<2.1.0"
|
||||||
|
ARG MMENGINE_VERSION=">=0.3.0"
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
### change the system source for installing libs
|
### change the system source for installing libs
|
||||||
@ -48,8 +49,7 @@ RUN /opt/conda/bin/pip install --no-cache-dir openmim
|
|||||||
|
|
||||||
### pytorch mmcv onnxruntime and openvino
|
### pytorch mmcv onnxruntime and openvino
|
||||||
RUN mim install torch==${TORCH_VERSION}+cpu torchvision==${TORCHVISION_VERSION}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html \
|
RUN mim install torch==${TORCH_VERSION}+cpu torchvision==${TORCHVISION_VERSION}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html \
|
||||||
&& if [ -z ${MMCV_VERSION} ] ; then MMCV="mmcv>=2.0.0rc2,<2.1.0" ; else MMCV="mmcv=="${MMCV_VERSION} ; fi && \
|
&& mim install --no-cache-dir "mmcv"${MMCV_VERSION} onnxruntime==${ONNXRUNTIME_VERSION} openvino-dev mmengine${MMENGINE_VERSION}
|
||||||
&& mim install --no-cache-dir ${MMCV} onnxruntime==${ONNXRUNTIME_VERSION} openvino-dev
|
|
||||||
|
|
||||||
ENV PATH /opt/conda/bin:$PATH
|
ENV PATH /opt/conda/bin:$PATH
|
||||||
|
|
||||||
|
@ -8,7 +8,8 @@ ARG ONNXRUNTIME_VERSION=1.8.1
|
|||||||
ARG MMCV_VERSION=1.5.3
|
ARG MMCV_VERSION=1.5.3
|
||||||
ARG PPLCV_VERSION=0.7.0
|
ARG PPLCV_VERSION=0.7.0
|
||||||
ENV FORCE_CUDA="1"
|
ENV FORCE_CUDA="1"
|
||||||
ARG MMCV_VERSION
|
ARG MMCV_VERSION=">=2.0.0rc2,<2.1.0"
|
||||||
|
ARG MMENGINE_VERSION=">=0.3.0"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
@ -40,8 +41,7 @@ RUN /opt/conda/bin/pip install --no-cache-dir openmim
|
|||||||
|
|
||||||
### pytorch mmcv onnxruntime
|
### pytorch mmcv onnxruntime
|
||||||
RUN mim install torch==${TORCH_VERSION}+cpu torchvision==${TORCHVISION_VERSION}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html \
|
RUN mim install torch==${TORCH_VERSION}+cpu torchvision==${TORCHVISION_VERSION}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html \
|
||||||
&& if [ -z ${MMCV_VERSION} ] ; then MMCV="mmcv>=2.0.0rc2,<2.1.0" ; else MMCV="mmcv=="${MMCV_VERSION} ; fi && \
|
&& mim install --no-cache-dir "mmcv"${MMCV_VERSION} onnxruntime-gpu==${ONNXRUNTIME_VERSION} mmengine${MMENGINE_VERSION}
|
||||||
&& mim install --no-cache-dir ${MMCV} onnxruntime-gpu==${ONNXRUNTIME_VERSION}
|
|
||||||
|
|
||||||
ENV PATH /opt/conda/bin:$PATH
|
ENV PATH /opt/conda/bin:$PATH
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user