Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of First Order Motion Model #11

Closed
matanby opened this issue May 10, 2020 · 2 comments
Closed

Usage of First Order Motion Model #11

matanby opened this issue May 10, 2020 · 2 comments

Comments

@matanby
Copy link

matanby commented May 10, 2020

Hi Aliaksandr,

Thanks for sharing this awesome project :-)
I dug into the code and tried to understand how is the "First Order Motion Model" used when adding the --first_order_motion_model CLI argument.
I saw that when using this argument, an instance of DenseMotionNetwork is created in PartSwapGenerator and this instance is used in the forward pass of this module in order to calculate the dense motion map between the source and the target objects.
My question is, in this case, does this module use segmentation maps (as described in the Motion-Supervied Co-Part Segmentation paper) or discrete keypoints (as described in First Order Motion Model)?
I would guess that keypoints would be used instead of segmentation maps so that we will be able to align the keypoints of the source and target faces, otherwise they wouldn't be aligned and so blending their features would result in an undesired result. Am I correct?

Thanks again!

@AliaksandrSiarohin
Copy link
Owner

Yes it is correct. Inside the dictionary that contain segmentation there is also affine transformations that used to warp these segmentations. So in case of first_order_motion_mode just this transfrormations is used in dense motion.

@matanby
Copy link
Author

matanby commented May 15, 2020

Thanks for the answer, makes sense now :-)

@matanby matanby closed this as completed May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants