mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2025-12-22 03:14:25 +08:00
Update nodes.py
This commit is contained in:
parent
17a7aed013
commit
2871f9b9d5
14
nodes.py
14
nodes.py
@ -301,15 +301,15 @@ class CogVideoConcatLatent:
|
|||||||
|
|
||||||
def encode(self, samples_from, samples_to):
|
def encode(self, samples_from, samples_to):
|
||||||
|
|
||||||
insert_from = samples_from["samples"]
|
insert_from = samples_from["samples"].clone()
|
||||||
insert_to = samples_to["samples"]
|
insert_to = samples_to["samples"].clone()
|
||||||
new_latents = torch.cat((insert_to, insert_from), dim=1)
|
new_latents = torch.cat((insert_to, insert_from), dim=1)
|
||||||
|
|
||||||
print("new latents shape: ", new_latents.shape)
|
print("new latents shape: ", new_latents.shape)
|
||||||
|
return ({
|
||||||
|
"samples": new_latents,
|
||||||
samples_to.update({"samples": new_latents})
|
"start_percent": samples_from["start_percent"],
|
||||||
return (samples_to, )
|
"end_percent": samples_from["end_percent"]
|
||||||
|
}, )
|
||||||
|
|
||||||
class CogVideoImageEncodeFunInP:
|
class CogVideoImageEncodeFunInP:
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user