Comments (9)
Not sure if you're asking this, but as far as I know you cannot swap on two images at once. Just one of the images will we changed, so if you want to swap the face on picture1 by face on picture2 AND viceversa you'll need to run it twice, one for each swap.
The command for images looks like this:
python inference.py --source_paths {source_faces_imgs} --target_image {target_img} --target_faces_paths {target_faces_imgs} --image_to_image True
Being:
{source_faces_imgs}
: One or more file paths to the images containing the "new faces" to be swapped on the target image{target_img}
: File path to the target image that will be changed to have the "new faces"{target_faces_imgs}
: One or more file paths containing the "current faces" images to swap, corresponding to each of the source faces. This parameter is optional if you are swapping just one face. If not provided, all the faces on the {target_img} will be swapped by the given source face
Some examples:
python inference.py --source_paths "my_face.jpg" --target_image "obama.jpg" --image_to_image True
python inference.py --source_paths "my_face.jpg" "my_son_face.jpg" --target_image "simpsons_family.jpg" --target_faces_paths "homer_crop.jpg" "bart_crop.jpg" --image_to_image True
from ghost.
Hello, how can I use sber swap on windows 10 can anyone help?
It works fine on Windows 10
from ghost.
how can i run it?
from ghost.
Here is a PowerShell script that I used to set up a fresh VM to run sber-swap on windows:
https://gist.github.com/thepirat000/ae9c9acf0e9d98b1aa14571cf2197341
from ghost.
Here is a PowerShell script that I used to set up a fresh VM to run sber-swap on windows:
https://gist.github.com/thepirat000/ae9c9acf0e9d98b1aa14571cf2197341
You help me a lot with that fixes.
Can you please share the correct command to swap face between 2 pictures (as google colab)? i cant make it work with pictures only working for me with videos.
My paths are the defaults: examples/images/1.jpg, examples/images/2.jpg
Thank you.
from ghost.
That's what i was looking for, now i'm running full sber swap on windows. I took your code and just put the folders example/images on the source and the target, and finally work.
Thanks for your time and helping this newbie learning user.
from ghost.
Thank you i got it working but i get this error on some videos
from ghost.
That error happen to me at first, but it fixed itself, i just install pytorch, but im not sure if thats the solution, i didn't anything else.
from ghost.
That's what i was looking for, now i'm running full sber swap on windows. I took your code and just put the folders example/images on the source and the target, and finally work.
Thanks for your time and helping this newbie learning user.
can you help me and tell which version of python are you using, I'm having a lot of dependency issues while installing the requirements.txt I'm using python 3.7, by the way I'm also on windows 10
from ghost.
Related Issues (20)
- google cloud is closed HOT 1
- Google Cloud is unavailable and banned! ! HOT 3
- Where
- Juanes
- TypeError: RetinaFace.detect() got an unexpected keyword argument 'threshold'
- Output is black blob on face of target image -- tips for debug?
- Suspicious/malicious file with binary incoded as base64 ofuscating as png image HOT 1
- Error when loading "Preparation" section HOT 1
- colab error OSError: libcudart.so.11.0: cannot open shared object file: No such file or directory HOT 1
- what is a model license? HOT 3
- Inconsistent requirements HOT 2
- Vgg2 dataset cannot be downloaded HOT 2
- How to Only Save the Best Model During Training
- Requirements.txt HOT 1
- Need Help Resolving Critical Errors in Code
- Google blocks colab file
- Google colab is not working HOT 2
- Few Question about the paper
- Is it actually alive project or not? HOT 1
- colab notebooks are no longer available
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghost.