mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-04-06 03:57:56 +08:00
updated docker file and added script to instsall needed package post image
This commit is contained in:
parent
f3461dac3a
commit
30fcd4f9ff
11
Dockerfile
11
Dockerfile
@ -3,6 +3,9 @@ FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20.04
|
|||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
ENV TZ=Europe/London
|
ENV TZ=Europe/London
|
||||||
|
|
||||||
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade -y
|
RUN apt-get update && apt-get upgrade -y
|
||||||
RUN apt install git -y \
|
RUN apt install git -y \
|
||||||
&& apt install python3 -y \
|
&& apt install python3 -y \
|
||||||
@ -10,8 +13,14 @@ RUN apt install git -y \
|
|||||||
&& apt install git -y \
|
&& apt install git -y \
|
||||||
&& apt install python-is-python3 -y \
|
&& apt install python-is-python3 -y \
|
||||||
&& apt install python3-tk -y \
|
&& apt install python3-tk -y \
|
||||||
&& apt install ffmpeg libsm6 libxext6 -y
|
&& apt install ffmpeg libsm6 libxext6 -y \
|
||||||
|
&& apt install git -y
|
||||||
|
|
||||||
|
|
||||||
|
WORKDIR /workspace
|
||||||
|
|
||||||
RUN pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113 \
|
RUN pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113 \
|
||||||
&& pip install opencv-python
|
&& pip install opencv-python
|
||||||
|
|
||||||
|
|
||||||
|
RUN pip install SwissArmyTransformer>=0.2.9 icetk gifmaker
|
||||||
|
3
install_image_local_attention.sh
Executable file
3
install_image_local_attention.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
pip install git+https://github.com/Sleepychord/Image-Local-Attention
|
Loading…
x
Reference in New Issue
Block a user