代码拉取完成,页面将自动刷新
同步操作将从 OpenXRLab/xrprimer 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#Download base image ubuntu 18.04
FROM ubuntu:18.04
# Install apt packages
RUN apt-get update && \
apt-get install -y \
wget git vim \
gcc-7 g++-7 make \
libblas-dev liblapack-dev libatlas-base-dev\
&& \
apt-get autoclean
# Install miniconda
RUN wget -q \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
# Update in bashrc
RUN echo "export CXX=/usr/bin/g++-7" >> /root/.bashrc && \
echo "export CC=/usr/bin/gcc-7" >> /root/.bashrc && \
echo "source /root/miniconda3/etc/profile.d/conda.sh" >> /root/.bashrc && \
echo "conda deactivate" >> /root/.bashrc
# Source the new env
RUN . /root/miniconda3/etc/profile.d/conda.sh && \
conda deactivate
ENV CXX /usr/bin/g++-7
ENV CC /usr/bin/gcc-7
# Prepare conda env
RUN . /root/miniconda3/etc/profile.d/conda.sh && \
conda create -n openxrlab python=3.8 -y && \
conda activate openxrlab && \
conda install ffmpeg -y && \
conda install cmake -y && \
conda clean --all
# Prepare pip env
RUN . /root/miniconda3/etc/profile.d/conda.sh && \
conda activate openxrlab && \
pip install pre-commit interrogate coverage pytest twine -i https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install opencv-python-headless numpy -i https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install torch==1.8.1 torchvision==0.9.1 -i https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install mmcv==1.5.0 && \
pip install conan && \
conan remote add openxrlab \
http://conan.openxrlab.org.cn/artifactory/api/conan/openxrlab && \
pip cache purge
# Clone xrprimer and install
RUN . /root/miniconda3/etc/profile.d/conda.sh && \
conda activate openxrlab && \
mkdir /workspace && cd /workspace && \
git clone https://github.com/openxrlab/xrprimer.git && \
cd xrprimer && pip install -e . && \
pip cache purge
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。