Qwen-Image-2.1 supports native 2K image generation, so I gave it a try as an upscaling/detail-enhancement method without using any additional upscaler nodes or LoRAs.
If you see a “missing node” warning on the Math Expression nodes, you can replace them with ComfyUI’s native Math Expression node and copy the same expressions.
The Math Expression nodes automatically calculate the output resolution while preserving the input aspect ratio. The calculation uses approximately 2048×2048 worth of total pixels (~4.2 MP) as the maximum 2K pixel budget, rather than limiting each side to 2048 px. For example, a 16:9 image can end up around 2730×1536, which is close to Qwen’s officially recommended 2752×1536 16:9 resolution.
You do not have to use these Math Expression nodes. You can also enter your preferred width and height manually in the Empty Latent Image node.
What matters most here is the prompt. The prompt included in the workflow is intentionally generic and should work for many types of images. However, if you get excessive grain, noise, or other artifacts, try adjusting the prompt.
For example, the prompt below is longer and more detailed than the one I use in the workflow. It can improve portraits and bring out more fine detail, but on some images it can also introduce noticeably more artifacts:
Enhance this image to high resolution with rich fine details. Sharpen textures and surfaces, add natural microdetails, and improve clarity and definition across the image while preserving the original composition, lighting, atmosphere, and visual style. The input may be an illustration or a real photograph; preserve the original style.
Description
FAQ
Comments (7)
I don't understand how do you set your own resolution here?
When you click on the Empty Latent Image, you cannot type your own resolution.
when you upload your image to Load Image node, it automatically calculates the 2K resolution version of your input image size with the blue "Upscale Math" group nodes. If you want to enter your own resolution, delete all of the nodes, Empty Latent Image node will be available for you to input your own numbers
This works well as long as the original image is good quality (of course) - thank you very much :D
actually it's quite opposite. did you tried my detail enhancer lora here, maybe it will help https://civitai.com/models/2956730/elusarcas-qwen-21-detail-enhancer
It works on any old crap. Really well too
@reverentelusarca I guess when I say good quality i mean that if the original has a lot of artifacts then it enhances them too - but that's to be expected. I guess I'll try extreme downscaling first to remove the artifacts.
Funny upscale method, works good with krea2 renders. sending the final version to vrseed gives crazy details.











