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

  • Log In
  • Sign Up

timbrooks
/
instruct-pix2pix

Image-to-Image
Diffusers
Safetensors
StableDiffusionInstructPix2PixPipeline
Model card Files Files and versions
xet
Community
28

Instructions to use timbrooks/instruct-pix2pix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use timbrooks/instruct-pix2pix with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    from diffusers.utils import load_image
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("timbrooks/instruct-pix2pix", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Turn this cat into a dog"
    input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
    
    image = pipe(image=input_image, prompt=prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
instruct-pix2pix
31.9 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 18 commits
patrickvonplaten's picture
patrickvonplaten
Fix deprecated float16/fp16 variant loading through new `version` API. (#17)
31519b5 almost 3 years ago
  • feature_extractor
    add model over 3 years ago
  • safety_checker
    Fix deprecated float16/fp16 variant loading through new `version` API. (#17) almost 3 years ago
  • scheduler
    Update scheduler/scheduler_config.json over 3 years ago
  • text_encoder
    Fix deprecated float16/fp16 variant loading through new `version` API. (#17) almost 3 years ago
  • tokenizer
    add model over 3 years ago
  • unet
    Fix deprecated float16/fp16 variant loading through new `version` API. (#17) almost 3 years ago
  • vae
    Fix deprecated float16/fp16 variant loading through new `version` API. (#17) almost 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    1.29 kB
    Update README.md (#15) almost 3 years ago
  • instruct-pix2pix-00-22000.ckpt

    Detected Pickle imports (5)

    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict",
    • "torch.LongStorage",
    • "torch.FloatStorage",
    • "torch.IntStorage"

    What is a pickle import?

    7.7 GB
    xet
    uP over 3 years ago
  • instruct-pix2pix-00-22000.safetensors
    7.7 GB
    xet
    Adding `safetensors` variant of this model (#1) over 3 years ago
  • model_index.json
    616 Bytes
    Update model_index.json over 3 years ago