The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Make torchaudio not a hard requirement. (#7987)
comfyanonymousfd08e39588b7
diff --git a/comfy/ldm/ace/vae/music_dcae_pipeline.py b/comfy/ldm/ace/vae/music_dcae_pipeline.pyindex 3188bc770..af81280eb 100644--- a/comfy/ldm/ace/vae/music_dcae_pipeline.py+++ b/comfy/ldm/ace/vae/music_dcae_pipeline.py@@ -1,7 +1,12 @@# Original from: https://github.com/ace-step/ACE-Step/blob/main/music_dcae/music_dcae_pipeline.pyimport torchfrom .autoencoder_dc import AutoencoderDC-import torchaudio+import logging+try:+ import torchaudio+except:+ logging.warning("torchaudio missing, ACE model will be broken")+import torchvision.transforms as transformsfrom .music_vocoder import ADaMoSHiFiGANV1diff --git a/comfy/ldm/ace/vae/music_log_mel.py b/comfy/ldm/ace/vae/music_log_mel.pyindex d73d3f8e8..9c584eb7f 100755--- a/comfy/ldm/ace/vae/music_log_mel.py+++ b/comfy/ldm/ace/vae/music_log_mel.py@@ -2,7 +2,12 @@import torchimport torch.nn as nnfrom torch import Tensor-from torchaudio.transforms import MelScale+import logging+try:+ from torchaudio.transforms import MelScale+except:+ logging.warning("torchaudio missing, ACE model will be broken")+import comfy.model_managementclass LinearSpectrogram(nn.Module):