Originally this project has been created to put a person onto a post card but also works for any arbitrary background.
We are using MediaPipe to cut a person out of their image. We use TensorFlow to perform style transfer from the background image to the selfie. More specifically we are using a Magenta model. Lastly we combine both images.
- The program uses the first image in both "pictures of person" and "background" directories. So those must be present.
- We are using Python 3.11
- All the libraries are in the requirements.txt file