-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow users to provide a custom video background #84
base: master
Are you sure you want to change the base?
Conversation
This allows you to provide Video, ImageSequence, Image or ConstantColour background sources
I don't know if you are accepting PRs on this repo. I just found this functionality useful and wanted to offer it upstream |
Right now I am very busy with other projects. I won't have time to review those pull requests. So I am just gonna leave them open for now. |
All good, thanks for the awesome research! |
thank you for your share
the bgr' size should resize, make it equal to the source' size
if seq_chunk>1, bgr shuld be batch, the batchsize equal to seq_chunk; and the last batch' batchsize is the remainder
|
thank you for your share! ! I have same question in it.When I input a background image, it always doesn't match. Do you have a solution?It would be a big breakthrough if you could help me...... |
RuntimeError: The size of tensor a (3) must match the size of tensor b (4) at non-singleton dimension 2 |
@Ahuge @justforyourdream @chenying99 have you solved the issue? still not able to get results, |
This PR allows users to bring their own background image/imageSequence/video instead of the default green background.
It creates a new parameter in
convert_video
calledbgr_source: Optional[str] = None
that, when passed will attempt to load either anImageSequenceReader
,VideoReader
, or anImageReader
.I have moved the green background into a dummy class called
ConstantImage
which implements the Dataset interface so that it can be indexed into per frame.