MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / get_video_reader_batch

Function get_video_reader_batch

wan/data/utils.py:123–125  ·  view source on GitHub ↗
(video_reader, batch_index)

Source from the content-addressed store, hash-verified

121 gc.collect()
122
123def get_video_reader_batch(video_reader, batch_index):
124 frames = video_reader.get_batch(batch_index).asnumpy()
125 return frames
126
127def resize_frame(frame, target_short_side):
128 h, w, _ = frame.shape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected