Instructions to use happyzjp/image_lora_Image-005 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use happyzjp/image_lora_Image-005 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("happyzjp/image_lora_Image-005") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
LoRA Model
This is a LoRA (Low-Rank Adaptation) model fine-tuned from black-forest-labs/FLUX.1-dev.
LoRA Configuration
- Rank (r): 16
- Alpha: 32
- Target Modules: proj_out, to_v, to_out.0, proj_in, to_k, to_q
Usage
With Diffusers
from diffusers import DiffusionPipeline
import torch
# Load base model
pipe = DiffusionPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
torch_dtype=torch.float16
)
pipe = pipe.to("cuda")
# Load LoRA weights
pipe.load_lora_weights("YOUR_USERNAME/YOUR_REPO_NAME")
# Generate image
image = pipe(
prompt="your prompt here",
num_inference_steps=30,
guidance_scale=7.5
).images[0]
image.save("output.png")
Training
This model was trained using the Satori network.
License
This model is released under the Apache 2.0 license.
- Downloads last month
- 4
Model tree for happyzjp/image_lora_Image-005
Base model
black-forest-labs/FLUX.1-dev