Diffusers How to use prithivMLmods/Mockup-Texture-Flux-LoRA 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("prithivMLmods/Mockup-Texture-Flux-LoRA")
prompt = "Mockup, a pristine white sweatshirt is prominently displayed against a stark white backdrop. The sweatshirt has a long-sleeved button-down collar and a zipper on the right side of the chest. The sleeves of the sweatshirt are rolled up at the elbow, adding a touch of texture to the image."
image = pipe(prompt).images[0]