mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-24 01:48:13 +00:00
@@ -140,7 +140,7 @@ class LightningModelForDataProcess(pl.LightningModule):
|
|||||||
if "first_frame" in batch:
|
if "first_frame" in batch:
|
||||||
first_frame = Image.fromarray(batch["first_frame"][0].cpu().numpy())
|
first_frame = Image.fromarray(batch["first_frame"][0].cpu().numpy())
|
||||||
_, _, num_frames, height, width = video.shape
|
_, _, num_frames, height, width = video.shape
|
||||||
image_emb = self.pipe.encode_image(first_frame, num_frames, height, width)
|
image_emb = self.pipe.encode_image(first_frame, None, num_frames, height, width)
|
||||||
else:
|
else:
|
||||||
image_emb = {}
|
image_emb = {}
|
||||||
data = {"latents": latents, "prompt_emb": prompt_emb, "image_emb": image_emb}
|
data = {"latents": latents, "prompt_emb": prompt_emb, "image_emb": image_emb}
|
||||||
|
|||||||
Reference in New Issue
Block a user