GeneratorVideo
does not work
#4301
Labels
Help Wanted 🙏
Contribution task, outside help would be appreciated!
GeneratorVideo
does not work
#4301
Description
VideoDataset
using aGeneratorVideo
does not workContext
I'm truing to create a video using
GeneratorVideo
to see if I can free up some memory. I already tried successfully withSequentialVideo
(which works quite well btw) and refactored to use a generator that yields frames and a GeneratorVideo.Steps to Reproduce
Expected Result
A colorful video similar to this one ( in the preview does not work, hope it does when published)
test.mp4
Actual Result
This error!
If one changes the
node
to use aSequenceVideo
like so:It works well.
Now here it comes my debugging report:
One can see that there's a moment when running the pipeline, when the program is at
kedro.runner._run_node_sequential:528
, the code doeswhere
streams
is a list containing myGeneratorVideo
which gets iterated in the chaining. The problem is that the stream itself is an Iterator that gets crystallized into an iterator ofImage.Image
in the operation and iterated over while callingcatalog.save(name, data)
. ThenVideoDataset
takes the control and fails instantly because the input is no longer aGeneratorVideo
nor aSequenceVideo
, it is now anImage
From here I have no more clue about how this can be fixed tho :_)
Your Environment
pip show kedro
orkedro -V
): 0.19.9python -V
): Python 3.11.9The text was updated successfully, but these errors were encountered: