Allow users to provide a custom video background#84
Allow users to provide a custom video background#84Ahuge wants to merge 2 commits intoPeterL1n:masterfrom
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_videocalledbgr_source: Optional[str] = Nonethat, when passed will attempt to load either anImageSequenceReader,VideoReader, or anImageReader.I have moved the green background into a dummy class called
ConstantImagewhich implements the Dataset interface so that it can be indexed into per frame.