Comparison between the base model FLUX.1-dev and its adapter, a LoRA model tuned for super-realistic realism.
[ 28 steps ]
However, it performs better in various aspects compared to its previous models, including face realism, ultra-realism, and others.
previous versions [ 28 steps ]
1from gradio_client import Client
2
3client = Client("prithivMLmods/FLUX-REALISM")
4result = client.predict(
5 prompt="A tiny astronaut hatching from an egg on the moon, 4k, planet theme",
6 seed=0,
7 width=1024,
8 height=1024,
9 guidance_scale=6,
10 randomize_seed=True,
11 api_name="/run"
12 #takes minimum of 30 seconds
13)
14print(result)
1import torch
2from pipelines import DiffusionPipeline
3
4base_model = "black-forest-labs/FLUX.1-dev"
5pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
6
7lora_repo = "strangerzonehf/Flux-Super-Realism-LoRA"
8trigger_word = "Super Realism" #triggerword
9pipe.load_lora_weights(lora_repo)
10
11device = torch.device("cuda")
12pipe.to(device)
Weights for this model are available in Safetensors format.