Add display names to Hunyuan latent video nodes. (#10837)
This commit is contained in:
@@ -38,6 +38,7 @@ class EmptyHunyuanLatentVideo(io.ComfyNode):
|
|||||||
def define_schema(cls):
|
def define_schema(cls):
|
||||||
return io.Schema(
|
return io.Schema(
|
||||||
node_id="EmptyHunyuanLatentVideo",
|
node_id="EmptyHunyuanLatentVideo",
|
||||||
|
display_name="Empty HunyuanVideo 1.0 Latent",
|
||||||
category="latent/video",
|
category="latent/video",
|
||||||
inputs=[
|
inputs=[
|
||||||
io.Int.Input("width", default=848, min=16, max=nodes.MAX_RESOLUTION, step=16),
|
io.Int.Input("width", default=848, min=16, max=nodes.MAX_RESOLUTION, step=16),
|
||||||
@@ -63,6 +64,7 @@ class EmptyHunyuanVideo15Latent(EmptyHunyuanLatentVideo):
|
|||||||
def define_schema(cls):
|
def define_schema(cls):
|
||||||
schema = super().define_schema()
|
schema = super().define_schema()
|
||||||
schema.node_id = "EmptyHunyuanVideo15Latent"
|
schema.node_id = "EmptyHunyuanVideo15Latent"
|
||||||
|
schema.display_name = "Empty HunyuanVideo 1.5 Latent"
|
||||||
return schema
|
return schema
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -71,8 +73,6 @@ class EmptyHunyuanVideo15Latent(EmptyHunyuanLatentVideo):
|
|||||||
latent = torch.zeros([batch_size, 32, ((length - 1) // 4) + 1, height // 16, width // 16], device=comfy.model_management.intermediate_device())
|
latent = torch.zeros([batch_size, 32, ((length - 1) // 4) + 1, height // 16, width // 16], device=comfy.model_management.intermediate_device())
|
||||||
return io.NodeOutput({"samples": latent})
|
return io.NodeOutput({"samples": latent})
|
||||||
|
|
||||||
generate = execute # TODO: remove
|
|
||||||
|
|
||||||
|
|
||||||
class HunyuanVideo15ImageToVideo(io.ComfyNode):
|
class HunyuanVideo15ImageToVideo(io.ComfyNode):
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user