Views
No views yet
cy04 to trigger the image generation.1from diffusers import AutoPipelineForText2Image
2import torch
3
4device = "cuda" if torch.cuda.is_available() else "cpu"
5
6pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
7pipeline.load_lora_weights('Purz/choose-your-own-adventure', weight_name='purz-cy04-choose_your_own_adventure.safetensors')
8image = pipeline('cy04, a book titled "Fart Or Shart?", an illustration of a man sweating and anxious in his car in traffic, text blurb at the top "Choose from 2 possible endings!", bottom text "By I. Kant Holdit"').images[0]