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
Ctrl+K
Ctrl+K
  • 2 contributors
History: 12 commits
Zongsheng
add restorated examples
135f554 over 3 years ago
  • assets
    add restorated examples over 3 years ago
  • cropped_faces
    add restorated examples over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • LICENSE
    1.72 kB
    upload license over 3 years ago
  • README.md
    3.36 kB
    add model card over 3 years ago
  • config.json
    975 Bytes
    diffuser0.12->0.13 over 3 years ago
  • diffusion_pytorch_model.bin

    Detected Pickle imports (3)

    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict"

    What is a pickle import?

    639 MB
    xet
    upload diffusion model over 3 years ago
  • model_index.json
    197 Bytes
    DDPMPipeline->DifFacePipeline over 3 years ago
  • scheduler_config.json
    306 Bytes
    Improved ddpm scheduler over 3 years ago