mmagic icon indicating copy to clipboard operation
mmagic copied to clipboard

[Bug] Dockerfile error

Open limhasic opened this issue 1 year ago • 1 comments

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

main branch https://github.com/open-mmlab/mmagic

Environment

ubuntu 20.04

Reproduces the problem - code sample

ARG PYTORCH="1.6.0" ARG CUDA="10.1" ARG CUDA_ALIAS="101" ARG CUDNN="7" ARG MMCV="2.0.0rc1" ARG Usrname="xxx" ARG token="xxx"

FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel

ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0+PTX" ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all" ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC RUN apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libgl1-mesa-glx
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*

Install mmagic

RUN conda clean --all RUN git clone https://${Usrname}:${token}@github.com/open-mmlab/mmagic.git /mmagic WORKDIR /mmagic ENV FORCE_CUDA="1" RUN pip install openmim RUN mim install mmcv==${MMCV} RUN pip install -r requirements.txt RUN pip install --no-cache-dir -e .

Reproduces the problem - command or script

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC -> error

RUN mim install mmcv==${MMCV} -> error

Reproduces the problem - error message

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC -> error

#update -> RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys A4B469963BF863CC

RUN mim install mmcv==${MMCV} -> error

#update RUN mim install mmcv==2.0.0

requirements/runtime.txt ...

diffusers>=0.23.0

...

#update diffusers

Additional information

No response

limhasic avatar Nov 17 '23 05:11 limhasic

any updates on this..? @liuwenran

Joish avatar Jan 17 '24 19:01 Joish