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

  • Log In
  • Sign Up

michaeltrs
/
text2face

Diffusers
English
lora
image-generation
diffusion
face-generation
text-conditioned-human-portrait
synthetic-captions
Model card Files Files and versions
xet
Community

Instructions to use michaeltrs/text2face with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use michaeltrs/text2face with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("michaeltrs/text2face")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
text2face
12.7 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 5 commits
michaeltrs
modified model card
cc15c74 about 2 years ago
  • checkpoints
    Re-add files with LFS tracking about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • .gitignore
    33 Bytes
    adding code about 2 years ago
  • README.md
    4.52 kB
    modified model card about 2 years ago
  • generate.py
    1.73 kB
    adding code about 2 years ago
  • requirements.txt
    100 Bytes
    adding code about 2 years ago