Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

OAOA
/
DifFace

Diffusers
PyTorch
DifFacePipeline
face image enhancement
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Diffusers

    How to use OAOA/DifFace with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("OAOA/DifFace", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
DifFace / assets
7.88 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
Zongsheng
add restorated examples
135f554 over 3 years ago
  • .DS_Store
    6.15 kB
    add restorated examples over 3 years ago
  • 0368.png
    404 kB
    xet
    add restorated examples over 3 years ago
  • 0729.png
    351 kB
    xet
    add restorated examples over 3 years ago
  • 0885.png
    377 kB
    xet
    add restorated examples over 3 years ago
  • 0934.png
    387 kB
    xet
    add restorated examples over 3 years ago
  • Hepburn.png
    1.57 MB
    xet
    add restorated examples over 3 years ago
  • Solvay_conference.png
    3.34 MB
    xet
    add restorated examples over 3 years ago
  • oldimg_05.png
    1.45 MB
    xet
    add restorated examples over 3 years ago