# Stable Diffusion Inpainting Models fail to deploy

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstable-diffusion-inpainting-models-fail-to-deploy%2F28900%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [January 4, 2023, 4:23am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstable-diffusion-inpainting-models-fail-to-deploy%2F28900 "2023-01-04T04:23:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cormacmatterr](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@cormacmatterr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcormacmatterr)%5C
**Post date:** [January 4, 2023, 4:23am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstable-diffusion-inpainting-models-fail-to-deploy%2F28900%2F1 "2023-01-04T04:23:45Z")

</div>

When trying to deploy [stabilityai/stable-diffusion-2-inpainting](https://huggingface.co/stabilityai/stable-diffusion-2-inpainting) to an inference endpoint it consistently fails

 ![Screen Shot 2023-01-03 at 8.22.13 PM](https://us1.discourse-cdn.com/hellohellohello/original/2X/0/092eddf173f4ea973380fb5d13c8727de7ff495a.png)

Am I missing something here? [runwayml/stable-diffusion-v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) deployed to an endpoint without any issues.

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphilschmid)%5C
**Post date:** [January 4, 2023, 8:07am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstable-diffusion-inpainting-models-fail-to-deploy%2F28900%2F2 "2023-01-04T08:07:55Z")

</div>

Hello @cormacmatterr,

Inpainting models are not supported for zero-code deployments we created an repository with a custom handler for stable-diffusion-2 inpainting here: [philschmid/stable-diffusion-2-inpainting-endpoint · Hugging Face](https://huggingface.co/philschmid/stable-diffusion-2-inpainting-endpoint)

---

<div class="post-metadata">

**Author:** ![cormacmatterr](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@cormacmatterr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcormacmatterr)%5C
**Post date:** [January 4, 2023, 8:23pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fstable-diffusion-inpainting-models-fail-to-deploy%2F28900%2F3 "2023-01-04T20:23:56Z")

</div>

worked perfectly thank you!

Can we follow a similar approach of adding a custom handler.py to other incompatible models in the future?
