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

  • Log In
  • Sign Up

ahilkhanjnv
/
task2-stable-diffusion

Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
stable-diffusion
Model card Files Files and versions
xet
Community

Instructions to use ahilkhanjnv/task2-stable-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use ahilkhanjnv/task2-stable-diffusion with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("ahilkhanjnv/task2-stable-diffusion", 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
  • Local Apps
  • Draw Things
  • DiffusionBee
task2-stable-diffusion / sample_images
571 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
ahilkhanjnv's picture
ahilkhanjnv
Upload folder using huggingface_hub
c2c338f over 2 years ago
  • image(1).jpeg
    47.4 kB
    Upload folder using huggingface_hub over 2 years ago
  • image(10).jpeg
    25.1 kB
    Upload folder using huggingface_hub over 2 years ago
  • image(2).jpeg
    83.4 kB
    Upload folder using huggingface_hub over 2 years ago
  • image(3).jpeg
    127 kB
    Upload folder using huggingface_hub over 2 years ago
  • image(4).jpeg
    24.2 kB
    Upload folder using huggingface_hub over 2 years ago
  • image(5).jpeg
    45.2 kB
    Upload folder using huggingface_hub over 2 years ago
  • image(6).jpeg
    49.3 kB
    Upload folder using huggingface_hub over 2 years ago
  • image(7).jpeg
    44.9 kB
    Upload folder using huggingface_hub over 2 years ago
  • image(8).jpeg
    81.9 kB
    Upload folder using huggingface_hub over 2 years ago
  • image(9).jpeg
    42.6 kB
    Upload folder using huggingface_hub over 2 years ago