Instructions to use strangerzonehf/FlatLay-Male-Model-LoRA-Demo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use strangerzonehf/FlatLay-Male-Model-LoRA-Demo 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("strangerzonehf/FlatLay-Male-Model-LoRA-Demo") prompt = "Flat-Lay Men Model, A medium-built man with fair skin stands confidently in front of a teal backdrop. He is wearing a light gray trench coat over a light pink button-down shirt and dark gray dress pants. His hair is neatly combed back, and he has a clean-shaven face. He holds a closed black umbrella in his right hand, while his left hand rests in his pocket. His expression is neutral, with a sharp focus on the camera." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!