MCPcopy Create free account
hub / github.com/modelscope/DiffSynth-Studio / tensor2video

Method tensor2video

diffsynth/pipelines/svd_video.py:69–73  ·  view source on GitHub ↗
(self, frames)

Source from the content-addressed store, hash-verified

67
68
69 def tensor2video(self, frames):
70 frames = rearrange(frames, "C T H W -> T H W C")
71 frames = ((frames.float() + 1) * 127.5).clip(0, 255).cpu().numpy().astype(np.uint8)
72 frames = [Image.fromarray(frame) for frame in frames]
73 return frames
74
75
76 def calculate_noise_pred(

Callers 1

__call__Method · 0.95

Calls 1

cpuMethod · 0.80

Tested by

no test coverage detected