Git Product home page Git Product logo

Comments (6)

AliaksandrSiarohin avatar AliaksandrSiarohin commented on June 22, 2024

Not sure if I get what you mean. Can you provide an example?

from motion-cosegmentation.

instant-high avatar instant-high commented on June 22, 2024

Thanks for your reply
Since I have deleted most of my test videos and images i made a simple graphic to show what I mean.

image1

Depending on the target-video and the source-image I get a result similar to the picture above.
The swapped face (e.g 5-segment / segments 1,2,5) seems to be a bit too small.
(using 10 segment or 15 segment gives the same result)

When manually swapping a face using a graphic software by cutting out and dragging it over the other face I can resize the overlay as a whole until it fits best.

Can this be done by changing some parameter in your code?
If so, in which part of your code?

(I'm not familiar with python, all changes I've done so far are a lot of searching the internet)

Or am I completly wrong in understanding how it works?

from motion-cosegmentation.

AliaksandrSiarohin avatar AliaksandrSiarohin commented on June 22, 2024

Have you tried supervised Segmentation?

from motion-cosegmentation.

instant-high avatar instant-high commented on June 22, 2024

Yes. Same result or even worse.
A workaround for me is to do the swap manually for 1 frame and use it as source image for swap parts or animation.

from motion-cosegmentation.

AliaksandrSiarohin avatar AliaksandrSiarohin commented on June 22, 2024

I think you can try to use occlusion mask, lets say driving mask is Md source mask deformed is Ms. You can try to zero out pixels in occlusion mask which correspond to Md / Ms (blue border in your example).

from motion-cosegmentation.

instant-high avatar instant-high commented on June 22, 2024

Ok. Looks like it's not that simple to do.
For now I added a function to make a screenshot of the best matching frame of the target video to make a part swap image for use as source image.
I think the problem occured because of bad quality, low contrast, of the driving video.

Thank you so far

from motion-cosegmentation.

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.