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

  • Log In
  • Sign Up

jiayangshi
/
synchrotron_pixel_diffusion

Image-to-Image
Diffusers
Safetensors
DDPMPipeline
computed-tomography
ct-reconstruction
diffusion-model
inverse-problems
dm4ct
sparse-view-ct
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Diffusers

    How to use jiayangshi/synchrotron_pixel_diffusion 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("jiayangshi/synchrotron_pixel_diffusion", 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
synchrotron_pixel_diffusion
1.02 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 5 commits
jiayangshi's picture
jiayangshi
nielsr's picture
nielsr HF Staff
Improve model card metadata and fix usage snippet (#1)
0f5000d 2 months ago
  • scheduler
    Upload DDPMPipeline 2 months ago
  • unet
    Upload DDPMPipeline 2 months ago
  • .gitattributes
    1.52 kB
    initial commit 2 months ago
  • README.md
    2.57 kB
    Improve model card metadata and fix usage snippet (#1) 2 months ago
  • model_index.json
    181 Bytes
    Upload DDPMPipeline 2 months ago