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

  • Log In
  • Sign Up

dogeplusplus
/
stable-sam

Text-to-Image
Diffusers
PyTorch
StableDiffusionPipeline
stable-diffusion
sam-the-cat
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Diffusers

    How to use dogeplusplus/stable-sam with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("dogeplusplus/stable-sam", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "a photo of samruane cat"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
stable-sam
5.49 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 6 commits
dogeplusplus's picture
dogeplusplus
valhalla's picture
valhalla
Add `scale_factor` to vae config. (#1)
347c0f7 over 3 years ago
  • feature_extractor
    Upload with huggingface_hub over 3 years ago
  • safety_checker
    Upload with huggingface_hub over 3 years ago
  • scheduler
    Upload with huggingface_hub over 3 years ago
  • text_encoder
    Upload with huggingface_hub over 3 years ago
  • tokenizer
    Upload with huggingface_hub over 3 years ago
  • unet
    Upload with huggingface_hub over 3 years ago
  • vae
    Add `scale_factor` to vae config. (#1) over 3 years ago
  • .gitattributes
    1.52 kB
    Upload sam.png with huggingface_hub over 3 years ago
  • README.md
    362 Bytes
    Upload README.md with huggingface_hub over 3 years ago
  • model_index.json
    576 Bytes
    Upload with huggingface_hub over 3 years ago
  • sam.png
    4.33 MB
    xet
    Upload sam.png with huggingface_hub over 3 years ago