Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

j-min
/
reco_sd14_coco

Text-to-Image
Diffusers
Safetensors
English
StableDiffusionPipeline
reco
layout-to-image
Model card Files Files and versions
xet
Community
1

Instructions to use j-min/reco_sd14_coco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use j-min/reco_sd14_coco with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("j-min/reco_sd14_coco", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "A box contains six donuts with varying types of glazes and toppings. <|endoftext|> <bin514> <bin575> <bin741> <bin765> <|startoftext|> chocolate donut. <|endoftext|> <bin237> <bin517> <bin520> <bin784> <|startoftext|> dark vanilla donut. <|endoftext|> <bin763> <bin575> <bin988> <bin745> <|startoftext|> donut with sprinkles. <|endoftext|> <bin234> <bin281> <bin524> <bin527> <|startoftext|> donut with powdered sugar. <|endoftext|> <bin515> <bin259> <bin767> <bin514> <|startoftext|> pink donut. <|endoftext|> <bin753> <bin289> <bin958> <bin506> <|startoftext|> brown donut. <|endoftext|>"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
reco_sd14_coco / tokenizer
1.78 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
Jaemin Cho
First model version
cae1f6a over 2 years ago
  • added_tokens.json
    21 kB
    First model version over 2 years ago
  • merges.txt
    525 kB
    First model version over 2 years ago
  • special_tokens_map.json
    586 Bytes
    First model version over 2 years ago
  • tokenizer_config.json
    175 kB
    First model version over 2 years ago
  • vocab.json
    1.06 MB
    First model version over 2 years ago