Upload VideoX-Fun/Dockerfile.ds
Browse files- VideoX-Fun/Dockerfile.ds +52 -0
VideoX-Fun/Dockerfile.ds
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM nvidia/cuda:12.1.0-cudnn8-devel-ubuntu22.04
|
| 2 |
+
ENV DEBIAN_FRONTEND noninteractive
|
| 3 |
+
|
| 4 |
+
RUN rm -r /etc/apt/sources.list.d/
|
| 5 |
+
|
| 6 |
+
RUN apt-get update -y && apt-get install -y \
|
| 7 |
+
libgl1 libglib2.0-0 google-perftools \
|
| 8 |
+
sudo wget git git-lfs vim tig pkg-config libcairo2-dev \
|
| 9 |
+
aria2 telnet curl net-tools iputils-ping jq \
|
| 10 |
+
python3-pip python-is-python3 python3.10-venv tzdata lsof zip tmux
|
| 11 |
+
RUN apt-get update && \
|
| 12 |
+
apt-get install -y software-properties-common && \
|
| 13 |
+
add-apt-repository ppa:ubuntuhandbook1/ffmpeg6 && \
|
| 14 |
+
apt-get update && \
|
| 15 |
+
apt-get install -y ffmpeg
|
| 16 |
+
|
| 17 |
+
RUN pip3 install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple/
|
| 18 |
+
|
| 19 |
+
# add all extensions
|
| 20 |
+
RUN pip install wandb tqdm GitPython==3.1.32 Pillow==9.5.0 setuptools --upgrade -i https://mirrors.aliyun.com/pypi/simple/
|
| 21 |
+
|
| 22 |
+
RUN pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu118
|
| 23 |
+
RUN pip install xformers==0.0.27.post2 --index-url https://download.pytorch.org/whl/cu118
|
| 24 |
+
|
| 25 |
+
# install vllm (video-caption)
|
| 26 |
+
RUN pip install vllm==0.6.3
|
| 27 |
+
|
| 28 |
+
# install requirements (video-caption)
|
| 29 |
+
WORKDIR /root/
|
| 30 |
+
COPY easyanimate/video_caption/requirements.txt /root/requirements-video_caption.txt
|
| 31 |
+
RUN pip install -r /root/requirements-video_caption.txt
|
| 32 |
+
RUN rm /root/requirements-video_caption.txt
|
| 33 |
+
|
| 34 |
+
RUN pip install -U http://eas-data.oss-cn-shanghai.aliyuncs.com/sdk/allspark-0.15-py2.py3-none-any.whl
|
| 35 |
+
RUN pip install -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers
|
| 36 |
+
RUN pip install came-pytorch deepspeed pytorch_lightning==1.9.4 func_timeout -i https://mirrors.aliyun.com/pypi/simple/
|
| 37 |
+
|
| 38 |
+
# install requirements
|
| 39 |
+
RUN pip install bitsandbytes mamba-ssm causal-conv1d>=1.4.0 -i https://mirrors.aliyun.com/pypi/simple/
|
| 40 |
+
RUN pip install ipykernel -i https://mirrors.aliyun.com/pypi/simple/
|
| 41 |
+
COPY ./requirements.txt /root/requirements.txt
|
| 42 |
+
RUN pip install -r /root/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
| 43 |
+
RUN rm -rf /root/requirements.txt
|
| 44 |
+
|
| 45 |
+
# install package patches (video-caption)
|
| 46 |
+
COPY easyanimate/video_caption/package_patches/easyocr_detection_patched.py /usr/local/lib/python3.10/dist-packages/easyocr/detection.py
|
| 47 |
+
COPY easyanimate/video_caption/package_patches/vila_siglip_encoder_patched.py /usr/local/lib/python3.10/dist-packages/llava/model/multimodal_encoder/siglip_encoder.py
|
| 48 |
+
|
| 49 |
+
ENV PYTHONUNBUFFERED 1
|
| 50 |
+
ENV NVIDIA_DISABLE_REQUIRE 1
|
| 51 |
+
|
| 52 |
+
WORKDIR /root/
|