# Stable Diffusion Inpainting Models fail to deploy

**URL:** <https://discuss.huggingface.co/t/stable-diffusion-inpainting-models-fail-to-deploy/28900>\
**Category:** Inference Endpoints on the Hub\
**Created:** [January 4, 2023, 4:23am UTC](https://discuss.huggingface.co/t/stable-diffusion-inpainting-models-fail-to-deploy/28900 "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](https://discuss.huggingface.co/u/cormacmatterr)\
**Post date:** [January 4, 2023, 4:23am UTC](https://discuss.huggingface.co/t/stable-diffusion-inpainting-models-fail-to-deploy/28900/1 "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](https://discuss.huggingface.co/u/philschmid)\
**Post date:** [January 4, 2023, 8:07am UTC](https://discuss.huggingface.co/t/stable-diffusion-inpainting-models-fail-to-deploy/28900/2 "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](https://discuss.huggingface.co/u/cormacmatterr)\
**Post date:** [January 4, 2023, 8:23pm UTC](https://discuss.huggingface.co/t/stable-diffusion-inpainting-models-fail-to-deploy/28900/3 "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?
