GithubHelp home page GithubHelp logo

Sber-Swap Windows 10 about ghost HOT 9 OPEN

osmankaya avatar osmankaya commented on August 17, 2024
Sber-Swap Windows 10

from ghost.

Comments (9)

thepirat000 avatar thepirat000 commented on August 17, 2024 1

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.

antongonz avatar antongonz commented on August 17, 2024

Hello, how can I use sber swap on windows 10 can anyone help?

It works fine on Windows 10

from ghost.

osmankaya avatar osmankaya commented on August 17, 2024

how can i run it?

from ghost.

thepirat000 avatar thepirat000 commented on August 17, 2024

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.

ramnnv avatar ramnnv commented on August 17, 2024

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.

ramnnv avatar ramnnv commented on August 17, 2024

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.

osmankaya avatar osmankaya commented on August 17, 2024

Ekran Alıntısı
Thank you i got it working but i get this error on some videos

from ghost.

ramnnv avatar ramnnv commented on August 17, 2024

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.

andriken avatar andriken commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.