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 / tokenizer
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
dogeplusplus's picture
dogeplusplus
Upload with huggingface_hub
9c99a04 over 3 years ago
  • merges.txt
    525 kB
    Upload with huggingface_hub over 3 years ago
  • special_tokens_map.json
    472 Bytes
    Upload with huggingface_hub over 3 years ago
  • tokenizer_config.json
    806 Bytes
    Upload with huggingface_hub over 3 years ago
  • vocab.json
    1.06 MB
    Upload with huggingface_hub over 3 years ago