Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into reverse-proxy
  • Loading branch information
ljleb committed Aug 16, 2023
2 parents e57f7d0 + e5ef429 commit 5826ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib_comfyui/webui/workflow_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def sample_img2img_hijack(p, x, *args, original_function, **kwargs):
processed_x = external_code.run_workflow(
workflow_type=default_workflow_types.preprocess_latent_workflow_type,
tab='img2img',
batch_input=type_conversion.webui_latent_to_comfyui(x).to(device='cpu'),
batch_input=type_conversion.webui_latent_to_comfyui(x.to(device='cpu')),
identity_on_error=True,
)
verify_singleton(processed_x)
Expand Down Expand Up @@ -97,7 +97,7 @@ def p_img2img_init(*args, original_function, p_ref, **kwargs):
processed_images = external_code.run_workflow(
workflow_type=default_workflow_types.preprocess_workflow_type,
tab='img2img',
batch_input=torch.stack([type_conversion.webui_image_to_comfyui(image) for image in p_ref.init_images]),
batch_input=type_conversion.webui_image_to_comfyui(p_ref.init_images),
identity_on_error=True,
)
verify_singleton(processed_images)
Expand Down

0 comments on commit 5826ab7

Please sign in to comment.