Comments (6)
Not sure if I get what you mean. Can you provide an example?
from motion-cosegmentation.
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.
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.
Have you tried supervised Segmentation?
from motion-cosegmentation.
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.
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.
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)
- occlusion on the face segments
- some problems about model training HOT 3
- Fine tuning the motion-cosegmentation Model HOT 11
- Problems when training the model HOT 2
- Fomm and Motion-cos HOT 3
- Having problems training the model HOT 18
- Training of a 512x512 model did not go well. HOT 11
- Problems with "untaring" vox-first-order.pth.tar HOT 1
- First Order Motion Model based alignment ?? HOT 1
- Non-matching tensors HOT 1
- Explanation of models and params HOT 1
- RuntimeError: CUDA error: device-side assert triggered
- The weight file cannot be obtained HOT 1
- Split for fitting the regression model? HOT 1
- how to generate segematation map?
- Problem with loss function when training with 512x512 data HOT 2
- Attempting part_swap.py with 512x512 trained checkpoint HOT 1
- Option supervised
- New error HOT 2
- Not sure what to make of this
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 motion-cosegmentation.