ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Mangled Workflow in PNG

Open gonzalu opened this issue 1 year ago • 17 comments

Expected Behavior

Proper Workflow saved in the PNG

Actual Behavior

Older workflow not related to actual workflow used to generate the image

Steps to Reproduce

Run workflow. Image is saved multiple times throughout the workflow at different stages Load any of the images to reload workflow Wrong workflow loads

Debug Logs

UI has been restarted multiple times since problem occurred. I believe the workflow is actually just mangled with both workflows embedded ...

Other

I posted in the Discord debug channel but felt it was important to post here for the broader user base/community

https://discord.com/channels/1218270712402415686/1244085343905648691/1260779285887713392

gonzalu avatar Jul 11 '24 13:07 gonzalu

  • Update comfyui to latest, there were recently workflow mangling bugs that got fixed
  • if updating doesn't fix it right away, please post the relevant image(s) to test replication with

mcmonkey4eva avatar Jul 11 '24 14:07 mcmonkey4eva

Thank you... I just updated to the latest version via Manager and I made this video to show the problem persists

https://www.youtube.com/watch?v=ZKyo0N0qgfs

gonzalu avatar Jul 11 '24 15:07 gonzalu

Here is one of the last saved images...

ComfyUI__00005_

gonzalu avatar Jul 11 '24 15:07 gonzalu

and here is what the actual workflow should look like:

image

gonzalu avatar Jul 11 '24 15:07 gonzalu

240711101918_%EffLoader base_ckpt_name%%KSmpBASE seed%%KSmpBASE sa_%KSmpBASE steps%_%KSmpBASE cfg%_FaceDetailer_00001

gonzalu avatar Jul 11 '24 15:07 gonzalu

ORIGINAL SOURCE file with working workflow.

I am trying to recover the workflow that was mangled as it had important updates to it with additional functionality ...

https://i.ibb.co/wRdXW96/Comfy-UI2x-Sharpened-00001.png

gonzalu avatar Jul 11 '24 15:07 gonzalu

Is there a way I can recover the good part of the workflow and discard the bad?

gonzalu avatar Jul 11 '24 23:07 gonzalu

  • Update comfyui to latest, there were recently workflow mangling bugs that got fixed
  • if updating doesn't fix it right away, please post the relevant image(s) to test replication with

Any news?

I don't have experience with JSON or the Comfy metadata but I do believe the two workflows are in the file. I just need to salvage the parts that matter to me and the rest can be discarded.

Thanks for your help

gonzalu avatar Jul 16 '24 02:07 gonzalu

i noticed that the png files saved are huge >10MB. I have to forego saving png with embedded workflow because of this.

IrfanKheiri avatar Sep 05 '24 08:09 IrfanKheiri

i noticed that the png files saved are huge >10MB. I have to forego saving png with embedded workflow because of this.

PNG does not support lossy compression, so high-resolution images can become quite large in file size. The workflow itself becomes large only in very exceptional cases, such as when using a custom node that stores the image itself in the workflow in base64 format.

ltdrdata avatar Sep 05 '24 12:09 ltdrdata

...or in my case, having multiple note nodes with thousands of prompts LOLOL ...

gonzalu avatar Sep 06 '24 17:09 gonzalu

but before a certain update all my files were under 2MB (png) all of a sudden the same workflow started creating huge png images when i save them through the save image node.

IrfanKheiri avatar Sep 10 '24 11:09 IrfanKheiri

but before a certain update all my files were under 2MB (png) all of a sudden the same workflow started creating huge png images when i save them through the save image node.

What is the workflow?

ltdrdata avatar Sep 10 '24 14:09 ltdrdata

but before a certain update all my files were under 2MB (png) all of a sudden the same workflow started creating huge png images when i save them through the save image node.

What is the workflow?

I posted my images above with the embedded mangled workflow ... if you want to take a look.

gonzalu avatar Sep 11 '24 00:09 gonzalu

but before a certain update all my files were under 2MB (png) all of a sudden the same workflow started creating huge png images when i save them through the save image node.

What is the workflow?

I posted my images above with the embedded mangled workflow ... if you want to take a look.

Has your workflow's saved image size, which used to be small, become enormous after an update?

ltdrdata avatar Sep 11 '24 01:09 ltdrdata

The problem above was quite a long time ago :( I have updated comfy and all nodes a hundred times probably since then :D

Should I try loading it again now with latest or will it make no difference?

I know the workflow is just mangled because when I manually look at it in notepad, I see both workflows co-mingled in there. I just wanted to recover one of the workflows because I did not have a copy of it otherwise.

Thank you

gonzalu avatar Sep 13 '24 14:09 gonzalu

but before a certain update all my files were under 2MB (png) all of a sudden the same workflow started creating huge png images when i save them through the save image node.

What is the workflow?

I posted my images above with the embedded mangled workflow ... if you want to take a look.

Has your workflow's saved image size, which used to be small, become enormous after an update?

yes same workflow with the save image node as before the update. Now makes saved image size huge (png only)

IrfanKheiri avatar Sep 23 '24 10:09 IrfanKheiri