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

  • Log In
  • Sign Up

hkung
/
face-anon-simple

Image-to-Image
Diffusers
Safetensors
Model card Files Files and versions
xet
Community
1

Instructions to use hkung/face-anon-simple with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use hkung/face-anon-simple with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    from diffusers.utils import load_image
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("hkung/face-anon-simple", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Turn this cat into a dog"
    input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
    
    image = pipe(image=input_image, prompt=prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
face-anon-simple
10.4 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 5 commits
hkung's picture
hkung
nielsr's picture
nielsr HF Staff
Add model card, link to paper (#1)
0966720 verified over 1 year ago
  • conditioning_referencenet
    Upload folder using huggingface_hub almost 2 years ago
  • referencenet
    Upload folder using huggingface_hub almost 2 years ago
  • unet
    Upload folder using huggingface_hub almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    185 Bytes
    Add model card, link to paper (#1) over 1 year ago