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

  • Log In
  • Sign Up

lehduong
/
OneDiffusion

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

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

  • Libraries
  • Diffusers

    How to use lehduong/OneDiffusion with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("lehduong/OneDiffusion", 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
OneDiffusion
Ctrl+K
Ctrl+K
  • 2 contributors
History: 12 commits
lehduong's picture
lehduong
nielsr's picture
nielsr HF Staff
Add model card with paper link, pipeline tag, license, and code link (#1)
b5560a4 verified 10 months ago
  • scheduler
    Upload folder using huggingface_hub over 1 year ago
  • text_encoder
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer
    Upload folder using huggingface_hub over 1 year ago
  • transformer
    Delete transformer/diffusion_pytorch_model.safetensors.index.json over 1 year ago
  • vae
    Upload folder using huggingface_hub over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    6 kB
    Add model card with paper link, pipeline tag, license, and code link (#1) 10 months ago
  • model_index.json
    338 Bytes
    Update model_index.json over 1 year ago