Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

olob0
/
moss-image-real-persons

Text-to-Image
Diffusers
English
lora
template:diffusion-lora
moss-image
realism
photography
selfie
Model card Files Files and versions
xet
Community

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
moss-image-real-persons
166 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
olob0's picture
olob0
Update README.md
06e0ea6 verified about 20 hours ago
  • assets
    Add Real Persons LoRA, model card, examples and comparisons about 20 hours ago
  • .gitattributes
    4.05 kB
    Add Real Persons LoRA, model card, examples and comparisons about 20 hours ago
  • README.md
    28.3 kB
    Update README.md about 20 hours ago
  • moss-image-real-persons-bf16.safetensors
    145 MB
    xet
    Add Real Persons LoRA, model card, examples and comparisons about 20 hours ago