update samples a579f5f
mpascua commited on
How to use MartinPascua/t1t0test with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("MartinPascua/t1t0test")
prompt = "t1t0test This cartoon shows two characters at a small table with a crystal ball, set against a green background. A yellow lamp hangs in the upper right corner. On the left sits a character in blue clothing on a small stool. On the right is a fortune teller character wearing a green dress with white polka dots and a blue headscarf, seated in a chair. Their hands hover near the crystal ball on the orange-clothed table. The speech bubbles now contain:First bubble (fortune teller):'Veo un gran viaje' (Translation:'I see a great journey') Second bubble (client):'¿En serio?' (Translation:'Really?') Third bubble (fortune teller):'Ah, no... un gran traje' (Translation:'Ah, no... a great suit')"
image = pipe(prompt).images[0]