The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix crash with ace step 1.5 (#12264)
comfyanonymousa31681564d9b
diff --git a/comfy/text_encoders/ace15.py b/comfy/text_encoders/ace15.pyindex 73d710671..fce2b67ce 100644--- a/comfy/text_encoders/ace15.py+++ b/comfy/text_encoders/ace15.py@@ -19,6 +19,7 @@ def sample_manual_loop_no_classes(min_tokens: int = 1,max_new_tokens: int = 2048,audio_start_id: int = 151669, # The cutoff ID for audio codes+ audio_end_id: int = 215669,eos_token_id: int = 151645,):device = model.execution_device@@ -60,6 +61,7 @@ def sample_manual_loop_no_classes(remove_logit_value = torch.finfo(cfg_logits.dtype).min# Only generate audio tokenscfg_logits[:, :audio_start_id] = remove_logit_value+ cfg_logits[:, audio_end_id:] = remove_logit_valueif eos_token_id is not None and eos_token_id < audio_start_id and min_tokens < step:cfg_logits[:, eos_token_id] = eos_score