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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Shiroi-max
/
ddpm-mnist-32

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

Instructions to use Shiroi-max/ddpm-mnist-32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use Shiroi-max/ddpm-mnist-32 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("Shiroi-max/ddpm-mnist-32", torch_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
ddpm-mnist-32 / samples
6.52 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 41 commits
Shiroi-max's picture
Shiroi-max
Epoch 6
9cbb10c about 2 years ago
  • 0000.png
    903 Bytes
    xet
    Epoch 0 about 2 years ago
  • 0001.png
    915 Bytes
    xet
    Epoch 1 about 2 years ago
  • 0002.png
    963 Bytes
    xet
    Epoch 2 about 2 years ago
  • 0003.png
    943 Bytes
    xet
    Epoch 3 about 2 years ago
  • 0004.png
    931 Bytes
    xet
    Epoch 4 about 2 years ago
  • 0005.png
    956 Bytes
    xet
    Epoch 5 about 2 years ago
  • 0006.png
    913 Bytes
    xet
    Epoch 6 about 2 years ago