MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / __init__

Method __init__

diffsynth/data/video.py:82–92  ·  view source on GitHub ↗
(self, video_file=None, image_folder=None, height=None, width=None, **kwargs)

Source from the content-addressed store, hash-verified

80
81class VideoData:
82 def __init__(self, video_file=None, image_folder=None, height=None, width=None, **kwargs):
83 if video_file is not None:
84 self.data_type = "video"
85 self.data = LowMemoryVideo(video_file, **kwargs)
86 elif image_folder is not None:
87 self.data_type = "images"
88 self.data = LowMemoryImageFolder(image_folder, **kwargs)
89 else:
90 raise ValueError("Cannot open video or image folder")
91 self.length = None
92 self.set_shape(height, width)
93
94 def raw_data(self):
95 frames = []

Callers

nothing calls this directly

Calls 3

set_shapeMethod · 0.95
LowMemoryVideoClass · 0.70

Tested by

no test coverage detected