Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions comfy/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def model_lora_keys_unet(model, key_map={}):
key_map["{}".format(key_lora)] = k
# Support transformer prefix format
key_map["transformer.{}".format(key_lora)] = k
key_map["lycoris_{}".format(key_lora.replace(".", "_"))] = k #SimpleTuner lycoris format

return key_map

Expand Down
6 changes: 5 additions & 1 deletion comfy_api_nodes/nodes_kling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,11 @@ async def api_call(
):
self.validate_prompt(prompt, negative_prompt)

if image is not None:
if image is None:
image_type = None
elif model_name == KlingImageGenModelName.kling_v1:
raise ValueError(f"The model {KlingImageGenModelName.kling_v1.value} does not support reference images.")
else:
image = tensor_to_base64_string(image)

initial_operation = SynchronousOperation(
Expand Down
2 changes: 0 additions & 2 deletions execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,6 @@ def handle_execution_error(self, prompt_id, prompt, current_outputs, executed, e
self.add_message("execution_error", mes, broadcast=False)

def execute(self, prompt, prompt_id, extra_data={}, execute_outputs=[]):
asyncio_loop = asyncio.new_event_loop()
asyncio.set_event_loop(asyncio_loop)
asyncio.run(self.execute_async(prompt, prompt_id, extra_data, execute_outputs))

async def execute_async(self, prompt, prompt_id, extra_data={}, execute_outputs=[]):
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
comfyui-frontend-package==1.24.4
comfyui-workflow-templates==0.1.52
comfyui-embedded-docs==0.2.4
comfyui-workflow-templates==0.1.53
comfyui-embedded-docs==0.2.6
torch
torchsde
torchvision
Expand Down
Loading