kasztaneczuszek
Collection
2 items • Updated
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("kasz69/ag69")
prompt = "AG69 nude dancing"
image = pipe(prompt).images[0]Model trained with AI Toolkit by Ostris

You should use AG69 to trigger the image generation.
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('kasz69/ag69', weight_name='ag69')
image = pipeline('A person in a bustling cafe AG69').images[0]
image.save("my_image.png")
For more details, including weighting, merging and fusing LoRAs, check the documentation on loading LoRAs in diffusers
Base model
black-forest-labs/FLUX.1-dev
# Gated model: Login with a HF token with gated access permission hf auth login