Skip to content

Commit

Permalink
fix: images in subfolders are not working, fixes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPietrusky committed May 28, 2024
1 parent 92812b1 commit 37480c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rp_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def process_output_images(outputs, job_id):
for node_id, node_output in outputs.items():
if "images" in node_output:
for image in node_output["images"]:
output_images = image["filename"]
output_images = f"{image['subfolder']}/{image['filename']}"

print(f"runpod-worker-comfy - image generation is done")

Expand Down
2 changes: 1 addition & 1 deletion test_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"9": {
"inputs": {
"filename_prefix": "ComfyUI",
"filename_prefix": "ComfyUI/test",
"images": ["8", 0]
},
"class_type": "SaveImage"
Expand Down

0 comments on commit 37480c2

Please sign in to comment.