Downloads · 30 days
729
0% of all-time downloads
Shakker-Labs/FLUX.1-dev-LoRA-AntiBlur
FLUX.1-dev-LoRA-AntiBlur is a text-to-image model from Shakker-Labs. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as other.
This is a functional LoRA trained on FLUX.1-dev for deep DoF (Anti-Blur🔥) by VadimFedenko on Shakker AI. It may not be fancy, but it works.
Downloads · 30 days
729
0% of all-time downloads
All-time downloads
3.4M
Public
Repo size
703 MB
Likes
238
Public
Click a slice to open those files.
.safetensors687 MB · 98%
From the Hugging Face model README
This is a functional LoRA trained on FLUX.1-dev for deep DoF (Anti-Blur🔥) by Vadim_Fedenko on Shakker AI. It may not be fancy, but it works.
<div class="container"> <img src="./poster.jpg" width="1024"/> </div> <!-- ## Showcases <Gallery /> -->The following example shows a simple comparison with FLUX.1-dev under the same parameter setting.
<div class="container"> <img src="./compare1.png" width="1024"/> </div>It is worth noting that this LoRA has very little damage to image quality while enhancing the depth of field, and can be used together with other components, such as ControlNet. We regard it as a basic functional LoRA.
<div class="container"> <img src="./compare2.png" width="1024"/> </div>The trigger word is not required. The recommended scale is 1.0 to 1.5 in diffusers.
import torch
from diffusers import FluxPipeline
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-AntiBlur", weight_name="FLUX-dev-lora-AntiBlur.safetensors")
pipe.fuse_lora(lora_scale=1.5)
pipe.to("cuda")
prompt = "a young college student, walking on the street, campus background, photography"
image = pipe(prompt,
num_inference_steps=24,
guidance_scale=3.5,
width=768, height=1024,
).images[0]
image.save(f"example.png")
You can also run this model at Shakker AI, where we provide an online interface to generate images.
This model is trained by our copyrighted users Vadim_Fedenko. We release this model under permissions. The model follows flux-1-dev-non-commercial-license.