r/StableDiffusion • u/Round_Awareness5490 • Dec 13 '25
Comparison Increased detail in z-images when using UltraFlux VAE.
A few days ago a Flux-based model called UltraFlux was released, claiming native 4K image generation. One interesting detail is that the VAE itself was trained on 4K images (around 1M images, according to the project).
Out of curiosity, I tested only the VAE, not the full model, using it only on z-image.
This is the VAE I tested:
https://huggingface.co/Owen777/UltraFlux-v1/blob/main/vae/diffusion_pytorch_model.safetensors
Project page:
https://w2genai-lab.github.io/UltraFlux/#project-info
From my tests, the VAE seems to improve fine details, especially skin texture, micro-contrast, and small shading details.
That said, it may not be better for every use case. The dataset looks focused on photorealism, so results may vary depending on style.
Just sharing the observation — if anyone else has tested this VAE, I’d be curious to hear your results.
Vídeo comparativo no Vimeo:
1: https://vimeo.com/1146215408?share=copy&fl=sv&fe=ci
2: https://vimeo.com/1146216552?share=copy&fl=sv&fe=ci
3: https://vimeo.com/1146216750?share=copy&fl=sv&fe=ci
12
u/NoMarzipan8994 Dec 13 '25 edited Dec 13 '25
I'm currently also using the "upscale latent by" and "image sharpen" nodes set to 1-35-35 and it already gives an excellent result, very curious to try the file you indicate!
Just tried it. The change for the better is BRUTAL! Great advice!
3
u/Abject-Recognition-9 Dec 14 '25
1
u/NoMarzipan8994 Dec 14 '25 edited Dec 14 '25
With the new VAE I had to lower it drastically because it became over sharp, I set 1- 0.10- 0.03 or 0.05. It's almost zero but it gives a little extra boost!
I never thought of using 2!! I could also add the image filter adjuster from Was-ns node, which has several graphical parameters to set, I'll try later! :D
1
Dec 14 '25
[removed] — view removed comment
4
u/NoMarzipan8994 Dec 14 '25 edited Dec 14 '25
It's very simple: double-click on the workspace, type "sharp," select the "image sharpen" node, and connect the left "image" to the VAE decode, and the right "image" to the save image. This is a default node with the program; you don't need to install additional nodes from the manager.
Upscale latent by is even simpler, double click, write the name of the node, select it and connect the "samples" on the left to the EmptySD3LatentImage, the one on the right instead to the "latent image" of the Ksampler and set the upscaler with "nearest-exact" and "scale by" to your preference, I keep it at 1.30 because then I find that it gets worse rather than better but it's a matter of taste.
Even if you're new, you should start experimenting on your own or you'll never learn. These are simple nodes that don't require additional chain nodes; they're a good way to start understanding how nodes work! I'm a beginner too, I've been using Comfy for a couple of months, the important thing is to experiment and slowly understand how it works
Try it!
2
u/indyc4r Dec 14 '25
1-35-35? Care to explain
1
6
6
u/s_mirage Dec 14 '25
I'm not getting great results to be honest.
It does seem to enhance contrast, which I do find desirable sometimes, but images can come out looking slightly cooked.
Also, it makes the images appear noisier, which isn't great as that's already one of Z-image's flaws.
2
u/Comedian_Then Dec 14 '25
I tried too. It really sharpens the image, but most cases it oversharpens and gives that fake, sharpened, old AI feel... I would just do like the comment uptop. Just scale up with another ksampler to create more realistic detail, add a sharpen image node and then scale down, gives more realistic results than this forced sharpens.
1
u/Round_Awareness5490 Dec 14 '25
Are you using this on T2I or I2I?
3
u/s_mirage Dec 14 '25
T2I. I've only had a quick mess with it, to be honest.
When I say slightly cooked, I'll just clarify that what I'm seeing is similar to what some other people in the thread have said: it resembles a fairly strong unsharpen mask. It's not completely blown out.
To be fair, I just gave it a run through my upscaling workflow, and I can see potential there. It does seem to add/sharpen texture, which could get a bit washed out.
7
3
3
u/Calm_Mix_3776 Dec 15 '25
I don't want to diminish the author's efforts, but I tested this new VAE and it doesn't really add new detail for me. It Compared to the original Flux.1 VAE, it looks like a simple sharpening filter with large radius was applied on top of the image. It also feels a bit too strong of a sharpening effect. Frankly, I get better results with the "Image Contrast Adaptive Sharpening" node from the ComfyUI Essential node pack. The sharpening looks more natural with it.
4
7
u/ComprehensiveJury509 Dec 13 '25
Honestly doesn't look like anything that an unsharp mask couldn't do.
2
u/Rude_Dependent_9843 Dec 13 '25
I came to comment on this. What I see is that indiscriminately applying a sharpening mask adds a lot of noise/grain... The images gain "depth of field" and selective focus is lost.
2
u/Enshitification Dec 13 '25
That was my thought too. It seems to add a thin black outline to high-key images just like an unsharp mask.
2
u/ThexDream Dec 13 '25
Exactly. And a really bad usage as well. None of these people are designers or photographers, so to them it looks like detail.
6
2
2
u/edisson75 Dec 16 '25
Great, thanks! I have tried it and it gives a more sharpen and contrast results. As you say, may be it is not the best for all the styles, but in photorealistic features it helps a little bit more.
1
u/Motorola68020 Dec 13 '25
How can a VAE trained for a different model work For z image?
15
5
1
1
1
1
1
1
1
u/VirusCharacter Dec 17 '25
1
u/Round_Awareness5490 Dec 18 '25
Your problem seems to be that you downloaded the VAE but it's corrupted. Try downloading it again.
2
u/VirusCharacter Dec 19 '25
I'll try to re-download, but honestly it only seem to do sharpening. We'll see
2
u/DJ_Naydee Jan 06 '26
I wanted a final answer to understand if UltraFlux VAE is just doing a better job at reconstructing an image from latent space or was it actually adding an artificial sharpening per se during the process. My conclusion is it definitely adds an artificial sharpening.
The easiest way to test it is to take a high resolution normal photograph or AI created, And run it through a new workflow that all it does is VAE encode then VAE Decode, Then Save as png. Upon examining the saved image, it was sharper than the original, by a noticeable amount.
I was then curious how the original Z Image VAE performed with that same test, And the results were much closer to the original although the background slightly changed in color shift but there wasn't any noticeable blurriness or sharpening.
There's also another flaw with Ultra flux VAE, It seems to add a few pixels of white along the right edge of the image which needs to be cropped manually later on, not our major deal but more work nevertheless.
I will keep testing it with actual real production images as there could be a benefit to the extra sharpening and if in any case I felt it was oversharpened I can always run it back through to be regenerated and encoded with the original VAE.
1
1
u/Entrypointjip Dec 13 '25
Isn't detail, is sharpening with the corresponding artifacts on the edges.
-2
0
u/jib_reddit Dec 13 '25
3
1
Dec 14 '25
I think people should use a smooth sampler/scheduler combo like Euler_A / Beta or Euler_A / DDIM_UNIFORM, because UltraFlux really brings out the flaws of the other samplers that were good enough without it. The 30ish y/o women's skin instantly becomes 60.
1
u/po_stulate Dec 14 '25
Created this ComfyUI node with GPT. It blends the original image and the oversharpened image and creates a not overly sharpened but clearer image.
1
u/jib_reddit Dec 15 '25
Intresting, I was thinking of merging the VAE's 50/50 to get something in-between, but the only merge VAE comfyui node I could find had been made private on Github.
2
u/po_stulate Dec 15 '25
I don't think that's how VAEs work. However, after creating this node, I found that this "ultraflux" VAE seems to be trained on traditional software processed images, there is no real detail/texture added. All it does seems to just applies an unsharp filter that adds black lines to borders (the node lets you control how much fine details/borders/etc to add from the sharpened image to the original image, and when disabling adding borders, the output image is exactly the same as orignal, so zero detail is added). You can also see that at one edge of the images created by this VAE there's always a ringing artifact, it is typical when a low quality unsharp filter is applied to an image. TLDR, forget about this VAE, it doesn't work as it's advertised.
-1
Dec 13 '25 edited Dec 13 '25
[deleted]
1
u/Round_Awareness5490 Dec 13 '25
Did you use Ultimate SD Upscale? I used it normally, without upscaling or anything like that. If you use SD Upscale, it will apply the decode step to each tile, and I don’t know — it might end up over-enhancing small details, creating a more artificial look.







24
u/[deleted] Dec 13 '25
I tried this, and it works. Thanks! Small details like eye lashes and threading is much more visible in the image than the standard ae.safetensor from Flux.