forked from XingangPan/DragGAN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added simple Dockerfile to quickly run gradio app and instructi…
…ons; fixed version in pip requirements.txt
- Loading branch information
1 parent
a3303cd
commit 9db0ab9
Showing
3 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM nvcr.io/nvidia/pytorch:23.05-py3 | ||
|
||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
make \ | ||
pkgconf \ | ||
xz-utils \ | ||
xorg-dev \ | ||
libgl1-mesa-dev \ | ||
libglu1-mesa-dev \ | ||
libxrandr-dev \ | ||
libxinerama-dev \ | ||
libxcursor-dev \ | ||
libxi-dev \ | ||
libxxf86vm-dev | ||
|
||
RUN pip install --upgrade pip | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
WORKDIR /workspace | ||
|
||
RUN (printf '#!/bin/bash\nexec \"$@\"\n' >> /entry.sh) && chmod a+x /entry.sh | ||
ENTRYPOINT ["/entry.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
torch | ||
torchvision | ||
Ninja | ||
gradio | ||
torch>=2.0.0 | ||
scipy==1.11.0 | ||
Ninja==1.10.2 | ||
gradio>=3.35.2 | ||
imageio-ffmpeg>=0.4.3 | ||
huggingface_hub | ||
hf_transfer | ||
pyopengl | ||
imgui | ||
glfw | ||
glfw==2.6.1 | ||
pillow>=9.4.0 | ||
torchvision>=0.15.2 | ||
imageio>=2.9.0 |