Skip to content

Difference between Video Mask and Source Video with pixel set to Grey 127 #30

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

Open
deepbeepmeep opened this issue Apr 8, 2025 · 3 comments

Comments

@deepbeepmeep
Copy link

What is the interest of using a Video Mask over setting to grey 127 pixels to be inpainted in the source Video ?

@hanzhn
Copy link
Collaborator

hanzhn commented Apr 9, 2025

If you consider beyond Masked V2V task (in/outpainting), all various video generation and editing tasks in a whole perspective,

  1. you need a src_mask to denote where should be changed and where should not be changed. We call them reactive and inactive.
  2. And also you need a default value (we choose grey 127) for tasks without actual source video like T2V and R2V, which means nothing here.

Briefly speaking, it depends on the task you are doing.

If in/outpainting or video extension (including I2V and clip expansion), both src_mask and src_video need to be set accordingly.
If V2V task like (pose, depth, colorization) only src_mask need to be set.
If T2V or R2V, the src_mask need to be all white and src_video need to be all grey.
...

To know the deep reason of it, please refer to Chapter 3.2 of our arXiv paper.

@deepbeepmeep
Copy link
Author

Thank you for this explanation.

@yuchenli-sony
Copy link

thank you so much it is really helpful

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

3 participants