mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-15 04:52:31 +08:00
Update nodes_ace.py
This commit is contained in:
parent
d1aeda9255
commit
ac373bef57
@ -82,7 +82,7 @@ class EmptyAceStepLatentAudio(io.ComfyNode):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def execute(cls, seconds, batch_size) -> io.NodeOutput:
|
def execute(cls, seconds, batch_size) -> io.NodeOutput:
|
||||||
length = int(seconds * 44100 / 512 / 8)
|
length = int(seconds * 44100 / 512 / 8)
|
||||||
latent = torch.zeros([batch_size, 8, 16, length], device=comfy.model_management.intermediate_device(), dtype=comfy.model_management.intermediate_dtype())
|
latent = torch.zeros([batch_size, 8, 16, length], device=comfy.model_management.intermediate_device())
|
||||||
return io.NodeOutput({"samples": latent, "type": "audio"})
|
return io.NodeOutput({"samples": latent, "type": "audio"})
|
||||||
|
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ class EmptyAceStep15LatentAudio(io.ComfyNode):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def execute(cls, seconds, batch_size) -> io.NodeOutput:
|
def execute(cls, seconds, batch_size) -> io.NodeOutput:
|
||||||
length = round((seconds * 48000 / 1920))
|
length = round((seconds * 48000 / 1920))
|
||||||
latent = torch.zeros([batch_size, 64, length], device=comfy.model_management.intermediate_device(), dtype=comfy.model_management.intermediate_dtype())
|
latent = torch.zeros([batch_size, 64, length], device=comfy.model_management.intermediate_device())
|
||||||
return io.NodeOutput({"samples": latent, "type": "audio"})
|
return io.NodeOutput({"samples": latent, "type": "audio"})
|
||||||
|
|
||||||
class ReferenceAudio(io.ComfyNode):
|
class ReferenceAudio(io.ComfyNode):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user