Instructions to use olob0/moss-image-real-persons with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use olob0/moss-image-real-persons with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OpenMOSS-Team/MOSS-Image-Base", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("olob0/moss-image-real-persons") prompt = "Mirror selfie of a man in his thirties with dark brown skin and a fresh low fade haircut, sitting in a barber chair with a black cape still fastened around his neck. He holds a phone with a cracked screen protector at face height and looks at the screen with a satisfied half smile, a thin line of hair clippings on his cheek. Behind him, the barber, an older man with a gray mustache and a navy polo shirt, wipes a pair of clippers with a paper towel. The counter in front of the mirror holds a spray bottle, a jar of blue disinfectant with combs inside, a can of talc and a small portable speaker. On the wall, a faded poster of haircut styles and a wall clock. Indoors, lit by a long fluorescent tube above the mirror." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Ctrl+K