ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

LOW RES PREVIEW IN NODE

Open charhubbie opened this issue 1 year ago • 17 comments

Your question

Image

Very simple issue, can't seem to get previews on the normal resolution the image is generated on. This issue is repeated in any type of ksampler, even the original ones.

I had to reinstall comfy, there's barely any nodes at the moment. I've tried reinstalling the taesd encoders as well, and taesd works, but the final image in the node itself it super low resolution.

I think this might be a feature of some node making the images low res?

This is a problem because i don't want to have to wait until i see the preview of the image to know if it will be a good image/ i just want to copy straight from the ksampler from efficient nodes as i always did until a few days ago when i reinstalled comfy.

Logs


Other

No response

charhubbie avatar Mar 25 '25 18:03 charhubbie

It's a bit confusing, but the resolution in the sampler preview during generation is not related to the real image resolution. By default, the max latent preview resolution is set to 512 (as you can see from your image), but you can change that with the --preview-size argument. For example: --preview-size 1024 set the max to 1024.

LukeG89 avatar Mar 25 '25 19:03 LukeG89

Thank you, that was the solution! In my older version i never had to do this, so i don't know why it got like this.

charhubbie avatar Mar 25 '25 19:03 charhubbie

The preview size does help, but it doesn't relate to the finished image, it just tries to output whatever value i put there. So for example, 1024 makes a 896x1152 image a 768x1024. So if i increase the preview size, it doesn't stop in the image resolution. If i swap the resolution of the image, it also kinda doesn't work.

Not the resolution of the generation.

charhubbie avatar Mar 25 '25 19:03 charhubbie

There is a misunderstanding of that value, you don't have to consider that resolution the REAL resolution. It's not. It's a resolution of the preview on the Sampler, NOT the actual image. Got it?

LukeG89 avatar Mar 25 '25 22:03 LukeG89

Yes of course, i understand that. However, in previous iterations of comfy, i could copy straight from the Ksampler. It's really important for my workflow. Later iterations of my generations go higher in resolution. Each node had it's own resolution. It's way easier to copy straight from comfyui then to go manually into each folder of the nodes and take my images from there. This is really time consuming on the scale i use it for. Right now, the image resolution is that preview size, before, it used to be whatever the image resolution was being generated on. Later iterations would be 4k images, that now are low resolution in the node OR high resolution in the node, but low resolution generation. If i then copy that to photoshop, that's the resolution of the image that goes into photoshop. The only real ''fix'' is to go manually into each folder. Which is not an option for my workflow. Any previous versions of comfy i used didn't have this issue. Is there no way to tell it to preview in the resolution the image is being generated on, as it has always been?

charhubbie avatar Mar 25 '25 23:03 charhubbie

You shouldn't be copying from the KSampler — you should copy from the PreviewImage or SaveImage nodes instead. The preview image shown in the KSampler was never at the original resolution and wasn't intended for that purpose in the first place.

ltdrdata avatar Mar 25 '25 23:03 ltdrdata

But it always worked... It was the same image as the save nodes always. I've been working with comfy for a over a year now, it always worked like this.

charhubbie avatar Mar 25 '25 23:03 charhubbie

But it always worked... It was the same image as the save nodes always. I've been working with comfy for a over a year now, it always worked like this.

It's clear that there was some misunderstanding on your part.

In fact, even the old ComfyUI couldn't adjust the maximum resolution limit of the live preview, so it actually offered even lower quality than what’s possible now.

ltdrdata avatar Mar 25 '25 23:03 ltdrdata

Listen, I've been using this feature daily for over one year. Please don't gaslight me. The ksampler would display the image preview in whatever resolution the image that it generated on was. If you don't know the answer, refrain from "helping". I work with comfy and this last update the image doesn't show in the resolution it should. The efficient ksampler was used a lot of the times, but even other ksamplers worked. Now, it doesn't. I am not mistaken, I've worked with it for a year. If there's a custom node that did this, that could be the answer. But it was there. And it worked. I am unable to revert these changes. Reinstalling comfy or using my older installation does not fix it. Something was updated behind the scenes to cause this, i think.

charhubbie avatar Mar 26 '25 11:03 charhubbie

I have discovered that switching to another tab and back again reveals the full image preview in the KSampler, which can then be opened and saved if desired.

loz2754 avatar Apr 04 '25 15:04 loz2754

Any update on this?

NuclearWaste02 avatar Apr 12 '25 16:04 NuclearWaste02

Any update on this?

I have confirmed that older versions worked as intended. My friend who helps me face fix still has the old install i gave him, and that shows image in the res they're being generated on whilst their generating, then previews it in full res too.

I could not, however, reproduce the effect in my computer. I assume something maybe on the pip list, or dependencies, when it was updated, made it so things stopped working.

I was able however to fix half of the issue: You can increase preview size as mentioned, to havea ''higher res'' in-progress. Also, merging whatever ksampler node with a preview node, allows the image to be displayed in full res after it's generated. This helped so i could copy straight from the node and reduce screen space.

charhubbie avatar Apr 13 '25 06:04 charhubbie

What you using to have preview on other Ksamplers? I only have preview on Efficient one and... its "broken" for some reason :( I now getting 2 previews on the ksampler Efficient one is the "preview_method" (on whatever setting you got it on,auto,taesd,etc and other is the "vae_decode" preview it automatic makes the EffKSampler taller overlaping other nodes in the workflow :( and it constrains the node resize to the pictures :( the resolution got fixed as you can see in the picture 720x1280 is the actual Latent res Image and sometimes on consecutive runs images overlaps

Image

Vision25th avatar May 02 '25 20:05 Vision25th

the difference which I think you understood is viewable pixel size vs resolution. I just wanted to understand your reasoning here, my own thinking is if you complete an image generation from a ksampler, why not just add a vae decode and a preview image node. You don't have to save the image, and you have the added benefit of being able to use the mask editor too. It doesn't cost you any real negligible overhead in terms of either rendering quality, time, or vram, and the node is literally designed to copy and paste from. rgthree has an image bridge node which is pretty cool, it will only pass the image to the next node if you allow it. There is a switch to block the transfer based on having a mask, but it also acts to prevent the image going to the next node. This is nice if you want to copy your image somewhere else, or make sure you like ti before you pass it on.

pixelpainter avatar May 08 '25 23:05 pixelpainter

the difference which I think you understood is viewable pixel size vs resolution. I just wanted to understand your reasoning here, my own thinking is if you complete an image generation from a ksampler, why not just add a vae decode and a preview image node. You don't have to save the image, and you have the added benefit of being able to use the mask editor too. It doesn't cost you any real negligible overhead in terms of either rendering quality, time, or vram, and the node is literally designed to copy and paste from. rgthree has an image bridge node which is pretty cool, it will only pass the image to the next node if you allow it. There is a switch to block the transfer based on having a mask, but it also acts to prevent the image going to the next node. This is nice if you want to copy your image somewhere else, or make sure you like ti before you pass it on.

For me, the issue 2 THINGS. 1. space. I merged a vae decode node and preview node into the efficient ksampler. However, some issues still persist, it only will show the actual previewed image after the full process is finished etc. However, it beats not having the image in the node. The second issue is, For the way i use it, it's good to quickly copy to photoshop, edit, paste back to gen again etc. That process is really slowed down by having to move the screen everytime if i had to have a preview node for every iterations of my samplers.

charhubbie avatar May 13 '25 15:05 charhubbie

Latest comfyui-frontend-package make this. Downgrade to old version (I'm using 1.10.17) can solve this.

KY-Chan avatar May 27 '25 11:05 KY-Chan

This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically.

github-actions[bot] avatar Jul 22 '25 11:07 github-actions[bot]