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

Method shape

diffsynth/data/video.py:113–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 return self.length
112
113 def shape(self):
114 if self.height is not None and self.width is not None:
115 return self.height, self.width
116 else:
117 height, width, _ = self.__getitem__(0).shape
118 return height, width
119
120 def __getitem__(self, item):
121 frame = self.data.__getitem__(item)

Callers

nothing calls this directly

Calls 1

__getitem__Method · 0.95

Tested by

no test coverage detected