Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cache
data_background
data_faces
images
scripts_background
scripts_faces
weights_background
weights_faces
.dockerignore
.gitignore
Dockerfile.gpu
Makefile
README.md
convert_background.py
convert_face_image.py
convert_face_video.py
load_prepare_face_data.py
me.jpg
train_background.py
train_face.py
urls_faces.yaml
urls_faces_sobchak.yaml

README.md

Item swap

This is part of source code for picsart.ai hackaton. It consist of two part: swapping face and swapping background. Full repo: https://github.com/n01z3/deep-anonymizer

Examples

Source image:

Face swap:

Background swap:

All together:

Using

For initialization:

- git clone https://github.com/EvgenyKashin/ItemSwap.git
- make docker-build
- make load-weights

For training:

- make train-face
- TODO: write instruction

For face and background swap:

- make convert-face-video
- make convert-face-image
- make convert-background-image

For parameters see Makefile

Important: there is loadSize parameter in make convert-background-image for changing image size.

Links

About hackathon

https://habr.com/company/ods/blog/433586/ - article (rus)

Based on

You can’t perform that action at this time.