Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share my Dockerfile #231

Open
0000sir opened this issue Apr 14, 2024 · 0 comments
Open

Share my Dockerfile #231

0000sir opened this issue Apr 14, 2024 · 0 comments

Comments

@0000sir
Copy link

0000sir commented Apr 14, 2024

The instructions in readme is a bit outdated, python 3.8, cuda 11.1 is not fit with 4090, I updated it and tested fine. Finally it works, but not as good as expected. Here comes the Dockerfile:

FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
RUN apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -yq ffmpeg build-essential cmake
RUN apt-get install -y python3.10 python3-pip
RUN pip install torch==2.0.0+cu118 torchvision==0.15.0+cu118 -f https://download.pytorch.org/whl/torch_stable.html
COPY ./video-retalking /src/
WORKDIR /src
RUN pip install -r requirements.txt --default-timeout=600

and the compose file:

version: "3"
services:
  retalking:
    build: 
      context: .
      dockerfile: Dockerfile
    tty: true
    runtime: nvidia
    environment:
      - NVIDIA_VISIBLE_DEVICES=all
    volumes:
      - ./video-retalking:/src
      - ./files:/files
      - ./checkpoints:/src/checkpoints

Hope this will help someone struggled in running errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant