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

Method __init__

diffsynth/extensions/FastBlend/data.py:97–108  ·  view source on GitHub ↗
(self, video_file, image_folder, **kwargs)

Source from the content-addressed store, hash-verified

95
96class VideoData:
97 def __init__(self, video_file, image_folder, **kwargs):
98 if video_file is not None:
99 self.data_type = "video"
100 self.data = LowMemoryVideo(video_file, **kwargs)
101 elif image_folder is not None:
102 self.data_type = "images"
103 self.data = LowMemoryImageFolder(image_folder, **kwargs)
104 else:
105 raise ValueError("Cannot open video or image folder")
106 self.length = None
107 self.height = None
108 self.width = None
109
110 def raw_data(self):
111 frames = []

Callers

nothing calls this directly

Calls 2

LowMemoryVideoClass · 0.70

Tested by

no test coverage detected