Views
No views yet
HUGGINGFACE 🎁🎁🎁
1from diffusers import AutoPipelineForText2Image
2import torch
3import os
4
5pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16) # or black-forest-labs/FLUX.1-schnell
6pipeline.to("cuda")
7
8pipeline.load_lora_weights("lustlyai/Flux_Lustly.ai_Uncensored_nsfw_v1",
9 weight_name="flux_lustly-ai_v1.safetensors",
10 adapter_name="v1")
11
12pipeline.set_adapters(["v1"], adapter_weights=[1])
13
14prompt = "high quality, on the street, a naked woman with purple hair, standing next to a black naked male with big flaccid dick, both hold a neon sign 'lustly.ai'"
15
16out = pipeline(
17 prompt=prompt,
18 guidance_scale=4,
19 height=768,
20 width=768,
21 num_inference_steps=20,
22).images[0]
23display(out)