Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile is ready. #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM nvcr.io/nvidia/pytorch:20.12-py3
ENV DEBIAN_FRONTEND noninteractive

RUN pip install dlib
RUN pip install gdown
RUN pip install -U scikit-image

RUN apt-get update -y
RUN apt-get install ffmpeg libsm6 libxext6 -y

RUN pip install -U opencv-python


# WORKDIR /workspace/
# COPY . .

ENTRYPOINT [ "python", "main.py" ]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ Produce results faithful to the masks:
python main.py --im_path1 90.png --im_path2 15.png --im_path3 117.png --sign fidelity --smooth 5
```

## Docker
Now, Dockerfile is ready and you can use this code in docker too.

### Build
```
docker build -t barbershop .
```
### Run
```
docker run --name barbershop --gpus all --rm -it -v <absolute_local_path>:/workspace/ barbershop --im_path1 90.png --im_path2 117.png --im_path3 15.png --sign fidelity --smooth 5
```


## Todo List
Expand Down