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('histin116/th-shirt1-flat', weight_name='th-shirt1-flat.safetensors')
image = pipeline('A person wearing the shirt HGFDR in front angle along with a blue jeans and white shoes in a white studio. The model is wearing the shirt with the top button open and with long sleeves. The shirt is a long-sleeved, button-up shirt with a classic plaid pattern. The shirt features a light beige base color with bold red and blue stripes creating a checkered design. The shirt has a pointed collar and is buttoned up to the top, revealing a small logo on the left side of the chest. The fabric appears to be a lightweight, breathable material, suitable for casual wear. The shirt is presented against a plain background, allowing the colors and pattern to stand out prominently. The camera angle is straight on, providing a clear and detailed view of the shirt's design and features.').images[0]image.save("my_image.png")