from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('None', weight_name='cozy_house.safetensors')
image = pipeline('This is a detailed CGI rendering of a cozy, warm, and inviting library room, likely situated in a rustic log cabin. The room is illuminated by warm, amber-toned lighting from various sources, including a fireplace and wall-mounted lamps. The walls are lined with wooden bookshelves, filled with a diverse collection of books, and the floor is covered in a rich, dark wooden planks. In the foreground, there is a small wooden bar with three bar stools, equipped with a few bottles and glasses. In the center of the room, a cozy armchair is positioned near a small wooden table, adorned with a few books and a lit candle. To the right, a wooden staircase with a wrought-iron railing ascends to a lofted area, adding to the room's cozy, cabin-like feel. The background features large floor-to-ceiling windows, which offer a view of a serene night sky filled with stars, enhancing the room's peaceful atmosphere. The windows are framed by wooden shutters. Scattered around the room are various items, including a small rug, a couple of cushions, and a few scattered books, adding to the lived-in, comfortable ambiance. The overall scene exudes warmth, comfort, and a sense of peaceful solitude.').images[0]
image.save("my_image.png")