models/Anti-blur Flux Lora - v1.0

Anti-blur Flux Lora - v1.0

|
7/14/2025
|
5:19:15 AM
| Discussion|
0
Bright luminous night with a winding mountain path leading to a castle atop a sharp peak, a glowing river below, and a woman in red cloak standing on a rocky ledge.
A detailed and colorful castle lit warmly at evening with a woman in a blue gown standing on a stone pathway surrounded by lush greenery and flowers.
A colorful 1970s cityscape at dusk with a woman standing on a balcony overlooking illuminated tall buildings, a vibrant sunset sky, and a full moon above.
A cinematic close-up image of a goddess cat split into white smoke and fog on the left and lava fire with ashes on the right, set over a mystical fractal fog forest with stone stairs and glowing embers.
A vibrant frozen city landscape at night showing a woman standing on a snowy path, traditional Chinese buildings, bright lights, a river with bridges, and snow-capped mountains under a full moon.

Recommended Negative Prompts

blur, dof

Recommended Parameters

samplers

Euler a, Euler

steps

30

cfg

1

resolution

1128x976

other models

AntiBlur (c0a3b5cf7376), [flux1]-dev (5be71bf8f4)

Recommended Hires (High-Resolution) Parameters

upscaler

4x-UltraSharp, Latent

upscale

1.65

denoising strength

0.55 - 0.61

Tips

Adjust the Lora's weight to control DoF: 0 for shallow DoF typical of Flux, 1.0 for balanced DoF with pleasant bokeh, above 1.0 for deep DoF effects up to 3.0+.

Use AntiBlur Lora in combination with hires.fix to improve image details and minimize shallow DoF artifacts.

No trigger words are needed; simply connect the Lora for it to work.

The model was trained on a large dataset including focus stacking and deep DoF images, ensuring stylistic neutrality and reduced artifacts.

Version Highlights

AntiBlur Lora has been significantly improved!

Improvements in new Lora:

  • DoF can be adjusted by Lora's weight.

So a weight of 0 will give a shallow DoF, typical for Flux generations.

A default weight of 1.0 will reduce DoF to a (hopefully) more pleasing image, without significant changes in style and composition. The goal was to get DoF at a weight 1 to be exactly how you'd expect it to be: minor good bokeh here and there, without overkills inherent to Flux (more on that later)

A weight of over 1.0 can be used to make shots with deep DoF. Lora can handle weights up to 3.0 and beyond without significant degradation in quality

  • Stylistically neutral

The dataset was made from hundreds of images created with Flux, so as not to take the style too far from the original model, while small number of real photos were used to keep Flux from degrading in composition (which is what happens when you train AI on it's own pictures)

  • No more Trigger words

Just connect the Lora and it'll do the job

  • Pairs well with Hires. fix

This Lora works well with hiresfix, allowing you to further increase the details and minimize shallow DoF. This was not the case with basic Flux, because by trying to hires. fix a

blurred image with shallow DoF, it'd stil remain blurred with the same DoF effect. You just need the details to start appearing in the image, for hires.fix to improve them further.

  • Much less artifacts

Using Flux-generated images minimizes artifacts. I also trained a lot of models, and made a merge of the best, using tool by anashel (This smoothed out the edges of individual models that led to artifacts. Merging turned out to be especially useful for making model stylistically diverse.)

Why does Lora weight 655mb?

It seemed to me that Lora with basically a deep DoF effect should be small, as it doesn't introduce a new style or concept, it just has to remove shallow DoF.

So I tried different Lora ranks, but as it turned out, information about the backgrounds is everywhere, and the larger the model, the better it gives the result. That's how I settled on the 128th-ranked Lora.

It's possible to isolate Lora's layers, and only use layers with DoF information in them, but as it turned out, information about DoF is scattered throughout the layers. For example, when generating macro shots, DoF is generated from the first layers. Information about backgrounds is really everywhere in the model, and constant shallow DoF is just the way training data looked for Flux. To make matters worse, Flux has a really poor understanding of DoF and blur. So not only it is present in much bigger amount than SD1.5/SDXL, it also provides much worse control over it.

How was this Lora made?

First, I put together a huge dataset with focus stacking techniques and deep DoF, on this I trained a new Lora. Next, using this Lora, I created images for a new dataset.

I've got several hundred variants of the "antiblur" Lora, selected the best ones each with their advantages, and combined them into a one well-balanced model.

What's next?

Since the higher the rank, the better the quality, the obvious way to improve the result would be to train a full finetune (and effectively touch every corner of the latent space, where there is information related to backgrounds), and then extract the Lora.

Another theoretical option is to find the "blur" or "dof" concept/weights in Flux latent space, and make a Lora out of inverted weights. This method wasn't very effective for dof control in SD-based models though.

As of now though I'm happy with the result. The model will remain my best effort for a while

AntiBlur Lora has been significantly improved!

Improvements in new Lora:

  • DoF can be adjusted by Lora's weight.

So a weight of 0 will give a shallow DoF, typical for Flux generations.

A default weight of 1.0 will reduce DoF to a (hopefully) more pleasant image, without significant changes in style and composition. The goal was to get DoF at weight 1.0 to be exactly how you'd expect it to be: minor good bokeh here and there, without overdoing it as is often the case with Flux (more on that later)

A weight of over 1.0 can be used to make shots with deep DoF. Lora can handle weights up to 3.0 and beyond without significant degradation in quality.

  • Stylistically neutral

The dataset was made from hundreds of images created with Flux, so as not to take the style too far from the original model, while small number of real photos were used to keep Flux from degrading in composition (which is what happens when you train AI on it's own pictures)

  • Pairs well with Hires. fix

This Lora works well with hiresfix, allowing you to further increase the details and minimize shallow DoF. This was not the case with basic Flux, because by trying to do hires. fix to a blurred image with shallow DoF, it'd stil remain blurred with the same DoF effect. You just need the details to start appearing in the image, for hires.fix to improve them further.

  • No more Trigger words

Just connect the Lora and it'll do the job

  • Much less artifacts

Using Flux-generated images minimizes artifacts. I also trained a lot of models, and made a merge of the best of them, using tool provided by anashel (This smoothed out the edges of individual models that led to artifacts. Also, merging turned out to be especially useful for making the model more stylistically diverse.)

Why does Lora weight 655mb

It seemed to me that Lora with basically a "deep DoF" effect should be small, as it doesn't introduce a new style or concept, it just has to remove shallow DoF.

So I tried different Lora ranks, but as it turned out, information about the backgrounds is everywhere in the latent space, and the larger the model, the better results it gives. That's how I settled on the 128-rank Lora.

It's possible to isolate Lora's layers, and only use layers with DoF information in them, but as it turned out, information about DoF is scattered throughout most of the layers. For example, when generating macro shots, DoF is generated from the first layers. Information that appears in the backgrounds is really everywhere in the model, and constant shallow DoF is just the way training data was like for Flux. To make matters worse, Flux has a really poor understanding of DoF and blur conceptually. So not only it is present in much bigger amount than SD1.5/SDXL, it also provides much worse control over it than SD1.5/SDXL.

How was this Lora made

First, I put together a huge dataset with focus stacking techniques and deep DoF, on this I trained a new Lora. Next, using this Lora, I created images for a new dataset.

I've got several hundred variants of the "antiblur" Lora, selected the best ones each with their advantages, and combined them into a one well-balanced model.

What's next?

Since the higher the rank, the better the quality, the obvious way to improve the result would be to train a full finetune (and effectively touch every corner of the latent space, where there is information related to backgrounds), and then extract the Lora.

Another theoretical option is to find the "blur" or "dof" concept/weights in Flux latent space, and make a Lora out of inverted weights. This method wasn't very effective for dof control in SD-based models though.

As of now though I'm happy with the result. The model will remain my best effort for a while

Contributor

Previous
A-mix [Illustrious] - A - mix
Next
Velvet's Mythic Fantasy Styles | Flux + Pony + illustrious - Flux Digital Lines

Model Details

Model type

LORA

Base model

Flux.1 D

Model version

v1.0

Model hash

328f945688

Discussion

Please log in to leave a comment.

Model Collection - Anti-blur Flux Lora

Images by Anti-blur Flux Lora - v1.0

Bright luminous night with a winding mountain path leading to a castle atop a sharp peak, a glowing river below, and a woman in red cloak standing on a rocky ledge.
A detailed and colorful castle lit warmly at evening with a woman in a blue gown standing on a stone pathway surrounded by lush greenery and flowers.
A colorful 1970s cityscape at dusk with a woman standing on a balcony overlooking illuminated tall buildings, a vibrant sunset sky, and a full moon above.
A cinematic close-up image of a goddess cat split into white smoke and fog on the left and lava fire with ashes on the right, set over a mystical fractal fog forest with stone stairs and glowing embers.
A vibrant frozen city landscape at night showing a woman standing on a snowy path, traditional Chinese buildings, bright lights, a river with bridges, and snow-capped mountains under a full moon.

background Images

A semi-realistic portrayal of an exotic belly dancer with long dark braided hair, wearing a flowing green dress with gold jewelry, standing in an Arabian garden adorned with pink rose vines on sandstone walls.
Kafka and Himeko from Honkai Star Rail posing with heart-shaped hands at a night train station under a starry galaxy sky
Close-up portrait of a blonde girl with blue eyes and many freckles, lying on a pillow with dynamic lighting and a soft pastel color palette.
Young woman posing in a garden with purple and red roses, wearing a shiny purple dress, with a thoughtful expression and natural makeup.
Close-up of an oni girl with red skin and glowing horns, adorned with jewelry and gothic makeup, illuminated by volumetric lighting against a detailed background.
Anime-style girl with black medium hair and yellow eyes wearing a blue jacket, red plaid skirt, and blue gloves firing an AR-15 rifle inside a room with broken windows and carrying duffle bags filled with money.
A gothic witch sitting on a coffin in a cemetery, holding a skull with glowing lights, surrounded by candles, tombstones, and flying bats.
An elegant woman with a red dress walking on a garden path surrounded by lush greenery and flowers. AI generated image using Stable Diffusion.
Futuristic cityscape with towering sci-fi buildings under a bright blue sky and scattered clouds, created using AI with stable diffusion.
AI generated image of a beautiful girl with blonde hair in a blue dress, surrounded by flowers and butterflies in a lush garden using Stable Diffusion

flux Images

A dark, eerie face composed of white ASCII characters on a black background, with glowing eyes and a highly detailed texture.
Cartoony scene in Windwaker style showing a small boy standing at a fork in the road with two castles: a bright one labeled family, friends, happiness; and a dark fiery one labeled Flux.
Stylized forest scene with tall trees, autumn foliage, bright light rays shining through, and a clear water surface reflecting the scenery.
A complex steampunk industrial structure with rusted metal, metal ladders, and warm yellow lights, towering above a dense foggy landscape.
Side profile of a female android with light beige weathered skin and intricate exposed mechanical parts showing gears and circuits, against a muted dark background.
Anime-style close-up portrait of a female collector wearing spectacles, holding a glowing orb with both hands in an attic filled with old books and artifacts.
A bright mountainous landscape with a turquoise river flowing through a rocky canyon, snow-capped peaks in the background, and green pine trees on cliffs. Underwater, a shadowy rocky canyon riverbed is visible.
Anime-style portrait of an elegant woman with a short bob hairstyle wearing a black top, standing in warm ambient lighting with soft shadows and a golden drink on the table.
Orange tabby cat wearing a tattered green cloak and floppy hat, singing seriously while holding a rustic wooden lute, illuminated by soft lighting against a dark background.
A person in a hoodie interacts with an abstract scene dominated by a vibrant lightning bolt, surrounded by swirling patterns and glowing orbs.

stable diffusion Images

Schoolgirl with brown hair, wearing a beige vest and blue skirt, sitting stylishly on a school chair in a classroom with sunlight streaming through windows.
Vampire woman with red eyes and hair in a black and red theme, limited palette, monochrome and greyscale.
Anime girl with tan skin in a sunflower field wearing overalls and a straw hat, smiling at the viewer with a light blush.
Artistic portrayal of an elf girl indoors with glowing volumetric lighting and large breasts, facing the viewer.
Anthro fox man with glasses in a suit, holding a bloody hammer.
A goth punk teacher with dark green hair and glasses leans against a wall, wearing a leather corset and long skirt, in an alley with plants.
Illustration of WeissSchnee with white hair and a curvy figure wearing a detailed blue and white outfit in a snowy city setting.
A sci-fi warrior witch with silver hair, glowing pink eyes, and intricate tattoos, wearing an inquisitor tunic in a high-contrast, theatrical setting.
Anime-style goth punk teacher with red eyes and pixie cut, standing in an alley with butterflies and plants.
Anime-style goth succubus with green eyes in latex bodysuit, featuring dark blue hair in an alley with butterflies.