-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Bug in getting the output back. #65
Comments
I came up against this issue too - it caused some real headaches for my project. I found it sometimes returned the filename with a temp substring in it (e.g. COMFY_temp_esunj_0001_.png or COMFY_temp_brqas_0008_.png). My hacky solution for this was to edit the Python code to include a function that checks for whether the filename includes a substring that follows this pattern and to remove it from the filename, because the COMFY_0008_.png image does exist. I'm a Javascript developer not normally working in Python so it was a challenge to debug the source of the issue, but even though it isn't not a great solution it has worked for me since. @landon2022 Your solution looks much cleaner and has found the source of the issue. Is the only addition you made to resolve this the line? -
Or is there additional code needed to add the 'type' key/value to the output object? |
Yes. If there is only one Save image node in your workflow, this line of code would suffice. But if your workflow contains more than one save image node, you need to change the source code to return all the saved images. |
Describe the bug
Hello!
In the source code:
`def process_output_images(outputs, job_id):
output_images = {}
print(f"runpod-worker-comfy - {local_image_path}")
`
The outputs will also include the temp preview output images, the function only takes the last output as the final path, and when loop through all the outputs somtimes you might get temp image as the output, thus cause no image found error at the comfyui/output path. Since temp images are stored in comfyui/temp not comfyui/output. So a output double check may needed Or disable all the previews in the workflow.
The text was updated successfully, but these errors were encountered: