Skip to content

Commit 4fa99aa

Browse files
committed
add simple docker setup
1 parent 2e40382 commit 4fa99aa

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:3.7
2+
3+
WORKDIR /app
4+
COPY . .
5+
EXPOSE 7860
6+
7+
RUN pip install --no-cache-dir -r requirements.txt
8+
9+
ENTRYPOINT [ "python", "-m", "draggan.web", "--ip", "0.0.0.0"]

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ Check out the original [paper](https://vcai.mpi-inf.mpg.de/projects/DragGAN/) fo
6363

6464
## Running Locally
6565

66+
### With Docker
67+
68+
```bash
69+
git clone https://github.com/Zeqiang-Lai/DragGAN.git
70+
cd DragGAN
71+
docker build -t dragcan .
72+
docker run -t -p 7860:7860 --gpus all dragcan
73+
```
74+
75+
Web UI will be available at http://localhost:7860/
76+
6677
### With PyPI
6778

6879
📑 [Step by Step Tutorial](https://zeqiang-lai.github.io/blog/en/posts/drag_gan/) | [中文部署教程](https://zeqiang-lai.github.io/blog/posts/ai/drag_gan/)

0 commit comments

Comments
 (0)