Closed Morgy93 closed 3 years ago
To build with docker it requires cuda and a NVIDIA GPU installed. If you have a nvidia gpu, please follow nvidia docker instructions for installation: https://github.com/NVIDIA/nvidia-docker
Otherwise, I recommend you to use the pip installer python setup.py install
(see README)
Error still persists also in a GPU environment
The error is that detectron2 has bumped its requirement to >= 1.6, where the NGC container includes pytorch 1.5. Can you try to upgrade the NGC container? By replacing
FROM nvcr.io/nvidia/pytorch:20.03-py3
with:
FROM nvcr.io/nvidia/pytorch:22.08-py3
Now i have this error
Could you freeze your requirements.txt from your docker?
ps: to avoid this i added
ENV DEBIAN_FRONTEND=nonintercative
Did you get it working, otherwise, this docker image should work:
FROM nvcr.io/nvidia/pytorch:22.08-py3
ENV DEBIAN_FRONTEND=nonintercative
ENV FORCE_CUDA="1"
ENV TORCH_HOME=/workspace
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 ffmpeg -y
RUN pip install cython tqdm moviepy opencv-python pyyaml scikit-image albumentations addict
RUN pip install 'git+https://github.com/facebookresearch/detectron2.git@0703e08a5f589f7503a3fbfce41309c80204eec8'
WORKDIR /workspace
RUN mkdir /pytorch_models
RUN pip install git+https://github.com/hukkelas/DSFD-Pytorch-Inference.git
RUN pip install opencv-python==4.5.5.64
it works, thanks
Hello,
I just tried to build the docker image, but sadly it fails:
It says
No CUDA runtime is found
but that's not mentioned in the requirements. Do I need to install it manually or what's the case here?