1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Hunyuan Custom initial untested implementation. (#8101)

This commit is contained in:
comfyanonymous
2025-05-13 12:53:47 -07:00
committed by GitHub
parent 8a7c894d54
commit 4a9014e201
3 changed files with 26 additions and 5 deletions

View File

@@ -924,6 +924,10 @@ class HunyuanVideo(BaseModel):
if guiding_frame_index is not None:
out['guiding_frame_index'] = comfy.conds.CONDRegular(torch.FloatTensor([guiding_frame_index]))
ref_latent = kwargs.get("ref_latent", None)
if ref_latent is not None:
out['ref_latent'] = comfy.conds.CONDRegular(self.process_latent_in(ref_latent))
return out
def scale_latent_inpaint(self, latent_image, **kwargs):