Spaces:
Build error
Build error
encounter1997
commited on
Commit
·
0a808ab
1
Parent(s):
47be5d6
add env
Browse files- Dockerfile +57 -0
- LICENSE +21 -0
- packages.txt +1 -0
- requirements.txt +19 -11
- style.css +3 -0
Dockerfile
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
RUN apt-get update && \
|
| 4 |
+
apt-get upgrade -y && \
|
| 5 |
+
apt-get install -y --no-install-recommends \
|
| 6 |
+
git \
|
| 7 |
+
git-lfs \
|
| 8 |
+
wget \
|
| 9 |
+
curl \
|
| 10 |
+
# ffmpeg \
|
| 11 |
+
ffmpeg \
|
| 12 |
+
x264 \
|
| 13 |
+
# python build dependencies \
|
| 14 |
+
build-essential \
|
| 15 |
+
libssl-dev \
|
| 16 |
+
zlib1g-dev \
|
| 17 |
+
libbz2-dev \
|
| 18 |
+
libreadline-dev \
|
| 19 |
+
libsqlite3-dev \
|
| 20 |
+
libncursesw5-dev \
|
| 21 |
+
xz-utils \
|
| 22 |
+
tk-dev \
|
| 23 |
+
libxml2-dev \
|
| 24 |
+
libxmlsec1-dev \
|
| 25 |
+
libffi-dev \
|
| 26 |
+
liblzma-dev && \
|
| 27 |
+
apt-get clean && \
|
| 28 |
+
rm -rf /var/lib/apt/lists/*
|
| 29 |
+
|
| 30 |
+
RUN useradd -m -u 1000 user
|
| 31 |
+
USER user
|
| 32 |
+
ENV HOME=/home/user \
|
| 33 |
+
PATH=/home/user/.local/bin:${PATH}
|
| 34 |
+
WORKDIR ${HOME}/app
|
| 35 |
+
|
| 36 |
+
RUN curl https://pyenv.run | bash
|
| 37 |
+
ENV PATH=${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${PATH}
|
| 38 |
+
ENV PYTHON_VERSION=3.10.9
|
| 39 |
+
RUN pyenv install ${PYTHON_VERSION} && \
|
| 40 |
+
pyenv global ${PYTHON_VERSION} && \
|
| 41 |
+
pyenv rehash && \
|
| 42 |
+
pip install --no-cache-dir -U pip setuptools wheel
|
| 43 |
+
|
| 44 |
+
RUN pip install --no-cache-dir -U torch==1.13.1 torchvision==0.14.1
|
| 45 |
+
COPY --chown=1000 requirements.txt /tmp/requirements.txt
|
| 46 |
+
RUN pip install --no-cache-dir -U -r /tmp/requirements.txt
|
| 47 |
+
|
| 48 |
+
COPY --chown=1000 . ${HOME}/app
|
| 49 |
+
# RUN cd Tune-A-Video && patch -p1 < ../patch
|
| 50 |
+
ENV PYTHONPATH=${HOME}/app \
|
| 51 |
+
PYTHONUNBUFFERED=1 \
|
| 52 |
+
GRADIO_ALLOW_FLAGGING=never \
|
| 53 |
+
GRADIO_NUM_PORTS=1 \
|
| 54 |
+
GRADIO_SERVER_NAME=0.0.0.0 \
|
| 55 |
+
GRADIO_THEME=huggingface \
|
| 56 |
+
SYSTEM=spaces
|
| 57 |
+
CMD ["python", "app.py"]
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2022 hysts
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
packages.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
ffmpeg
|
requirements.txt
CHANGED
|
@@ -1,13 +1,21 @@
|
|
| 1 |
-
|
| 2 |
-
torchvision==0.13.1
|
| 3 |
-
diffusers[torch]==0.11.1
|
| 4 |
-
transformers>=4.25.1
|
| 5 |
bitsandbytes==0.35.4
|
| 6 |
decord==0.6.0
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
imageio
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
accelerate==0.15.0
|
|
|
|
|
|
|
|
|
|
| 2 |
bitsandbytes==0.35.4
|
| 3 |
decord==0.6.0
|
| 4 |
+
diffusers[torch]==0.11.1
|
| 5 |
+
einops==0.6.0
|
| 6 |
+
ftfy==6.1.1
|
| 7 |
+
gradio==3.16.2
|
| 8 |
+
huggingface-hub==0.12.0
|
| 9 |
+
imageio==2.25.0
|
| 10 |
+
imageio-ffmpeg==0.4.8
|
| 11 |
+
omegaconf==2.3.0
|
| 12 |
+
Pillow==9.4.0
|
| 13 |
+
python-slugify==7.0.0
|
| 14 |
+
tensorboard==2.11.2
|
| 15 |
+
torch==1.13.1
|
| 16 |
+
torchvision==0.14.1
|
| 17 |
+
transformers==4.26.0
|
| 18 |
+
triton==2.0.0.dev20221202
|
| 19 |
+
xformers==0.0.16
|
| 20 |
+
opencv-python
|
| 21 |
+
ipywidgets
|
style.css
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
h1 {
|
| 2 |
+
text-align: center;
|
| 3 |
+
}
|