Views
No views yet
| Prompt | FLUX.1-dev | FLUX + Naruto LoRA |
|---|---|---|
| an old teacher in naruto style | ![]() | ![]() |
| a blonde woman with blue eyes in naruto style | ![]() | ![]() |
| a man in the woods wearing a green jacket in naruto style | ![]() | ![]() |
| a samurai warrior, in naruto style | ![]() | ![]() |
1from diffusers import FluxPipeline
2import torch
3
4ckpt_id = "black-forest-labs/FLUX.1-dev"
5pipeline = FluxPipeline.from_pretrained(
6 ckpt_id, torch_dtype=torch.float16
7)
8pipeline.load_lora_weights("zamal/naruto-lora-flux", weight_name="pytorch_lora_weights.safetensors")
9pipeline.enable_model_cpu_offload()
10
11image = pipeline(
12 "a samurai warrior in naruto style",
13 num_inference_steps=28,
14 guidance_scale=3.5,
15 height=768,
16 width=512,
17 generator=torch.manual_seed(0)
18).images[0]
19
20image.save("samurai_naruto_style.png")