1 Star 0 Fork 0

liuzhaopk/buzz-based-anomaly

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 897 Bytes
一键复制 编辑 原始数据 按行查看 历史
ARG CUDA_VERSION=10.2
FROM nvidia/cuda:$CUDA_VERSION-base
CMD nvidia-smi
WORKDIR .
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN apt-get update
RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/*
RUN wget \
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
RUN conda --version
COPY ./environment.yml /tmp/environment.yml
RUN conda env create --name pytorch-cuda-env -f /tmp/environment.yml
RUN echo "conda activate pytorch-cuda-env" >> ~/.bashrc
ENV PATH /opt/conda/envs/pytorch-cuda-env/bin:$PATH
ENV CONDA_DEFAULT_ENV $pytorch-cuda-env
COPY . /buzz-based-anomaly
WORKDIR /buzz-based-anomaly
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "pytorch-cuda-env", "python", "train.py"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuzhaopk/buzz-based-anomaly.git
git@gitee.com:liuzhaopk/buzz-based-anomaly.git
liuzhaopk
buzz-based-anomaly
buzz-based-anomaly
master

搜索帮助