Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add: adding docker file and requirements.txt #408

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

Open
VisionOra wants to merge 1 commit into neuralchen:main
base: main
Choose a base branch
Loading
from VisionOra:feat-docker-file
Open

add: adding docker file and requirements.txt #408

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
26 changes: 26 additions & 0 deletions Dockerfile
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM pytorch/pytorch:1.11.0-cuda11.3-cudnn8-devel

RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubu ntu1804/x86_64/3bf863cc.pub && \
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub

RUN apt-get update && \
apt-get install -y wget && \
wget -qO - https://developer.download.nvidia.com/compute/cuda/repos/ubu ntu1804/x86_64/7fa2af80.pub | apt-key add - && \
apt-get update && \
apt-get install -y git && \
apt-get install ffmpeg libsm6 libxext6 -y && \
apt install -y libprotobuf-dev protobuf-compiler && \
apt-get clean

RUN pip install --upgrade pip
RUN pip install --upgrade setuptools


WORKDIR /simpswap
COPY ./requirements.txt /simpswap/requirements.txt
RUN pip install -r /simpswap/requirements.txt


# Use external volume for data
ENV NVIDIA_VISIBLE_DEVICES 1
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--allow-root"]
15 changes: 15 additions & 0 deletions README.md
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,21 @@ For academic and non-commercial use only.The whole project is under the CC-BY-NC

[![logo](./docs/img/vggface2_hq_compare.png)](https://github.com/NNNNAI/VGGFace2-HQ)

## Installation

```bash
# Git clone
git clone
# Download weights
bash download_weights.sh
# Build Docker file
docker build -t simswap .
# Run docker file
docker run -it -v :/simpswap --gpus=all -p 8888:8888 simswap:latest
# Access jupyter notebook
http://localhost:8888/tree/simpswap
```

Learn about our other projects

[[VGGFace2-HQ]](https://github.com/NNNNAI/VGGFace2-HQ);
Expand Down
11 changes: 11 additions & 0 deletions requirements.txt
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
jupyter
autopep8
sets
isort
Pillow
insightface==0.2.1
onnxruntime
moviepy
imageio==2.4.1
numpy==1.19.5
lpips