Downloads ยท 30 days
29
10% of all-time downloads
flymy-ai/flux-dev-lora-example
flux-dev-lora-example is a text-to-image model from flymy-ai. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
Downloads ยท 30 days
29
10% of all-time downloads
All-time downloads
279
Public
Repo size
190 MB
Likes
0
Public
Click a slice to open those files.
.safetensors179 MB ยท 95%
From the Hugging Face model README
Lora for FLUX.1-dev
valentin trigger word required
Agentic Infra for GenAI. FlyMy.AI is a B2B infrastructure for building and running GenAI Media agents.
๐ Useful Links:
from diffusers import DiffusionPipeline
import torch
model_name = "black-forest-labs/FLUX.1-dev"
# Load the pipeline
if torch.cuda.is_available():
torch_dtype = torch.bfloat16
device = "cuda"
else:
torch_dtype = torch.float32
device = "cpu"
pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
pipe = pipe.to(device)
# Load LoRA weights
pipe.load_lora_weights('character_lora.safetensors', adapter_name="lora")
prompt = '''valentin sitting on a chair, portrait'''
negative_prompt = "blurry, low quality, distorted, bad anatomy"
image = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
width=1024,
height=1024,
num_inference_steps=28,
guidance_scale=3.5,
generator=torch.Generator(device="cuda").manual_seed(42)
).images[0]
# Display the image (in Jupyter or save to file)
image.show()
# or
image.save("output.png")

The ComfyUI workflow provides a user-friendly interface for generating images with our trained LoRA models without needing to write Python code.

Below are examples of images generated with our Valentin LoRA model:
Prompt: "valentin official style portrait"

Prompt: "valentin close up in a cyberpunk aesthetic, neon lighting, holographic elements, wearing futuristic clothing, standing in a neon-lit alley, sci-fi atmosphere, digital art"

Prompt: "valentin wearing sunglasses and a hat in a Greek city"

Prompt: "valentin, waist-up, standing in a fluorescent garden under blacklight, glowing bioluminescent plants, saturated purple and green hues, reflective sunglasses catching UV glints, surreal fashion editorial aesthetic, hyperreal depth, cinematic 85mm photography"

Test this LoRA model directly in your browser:
If you have questions or suggestions, join our community:
โญ Don't forget to star the repository if you like it!