Views
No views yet
1from diffusers import AutoPipelineForText2Image
2import torch
3
4pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.float16).to('cuda')
5pipeline.load_lora_weights('stablediffusionapi/my_flux_kontext_lora_v1', weight_name='my_flux_kontext_lora_v1.safetensors')
6image = pipeline('make the person smile --ctrl_img /my_workspace/server/control_folder/1.png').images[0]
7image.save("my_image.png")