Views
No views yet

1from diffusers import FluxPipeline
2import torch
3
4pipe = FluxPipeline.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
5pipe.load_lora_weights('WiroAI/pokemon-flux-lora', weight_name='pokemon_flux_lora.safetensors')
6image = pipe('[trigger], pikachu, the iconic yellow electric-type Pokémon, angry, forest backgorund').images[0]
7image.save("pokemon_image.png")