Views
No views yet
Leonardo DiCaprio to trigger the image generation.1from diffusers import AutoPipelineForText2Image
2import torch
3
4pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
5pipeline.load_lora_weights('openfree/leonardo-dicaprio', weight_name='leonardo-dicaprio.safetensors')
6image = pipeline('Leonardo DiCaprio as professional football player, happy face, black hair, real photo, 26K
7').images[0]
8image.save("my_image.png")