# Error while loading stable diffusion pipeline from pretrained

**URL:** <https://discuss.huggingface.co/t/error-while-loading-stable-diffusion-pipeline-from-pretrained/29978>\
**Category:** 🧨 Diffusers\
**Created:** [January 19, 2023, 12:42am UTC](https://discuss.huggingface.co/t/error-while-loading-stable-diffusion-pipeline-from-pretrained/29978 "2023-01-19T00:42:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsb7](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@dsb7](https://discuss.huggingface.co/u/dsb7)\
**Post date:** [January 19, 2023, 12:42am UTC](https://discuss.huggingface.co/t/error-while-loading-stable-diffusion-pipeline-from-pretrained/29978/1 "2023-01-19T00:42:40Z")

</div>

Hit into this issue while running [Stable diffusion with diffusers](https://huggingface.co/blog/stable_diffusion) in colab

Haven’t seen this issue an hour or so ago.

```auto
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/huggingface_hub/utils/_errors.py in hf_raise_for_status(response, endpoint_name)
    238 try:
--> 239 response.raise_for_status()
    240 except HTTPError as e:

9 frames
HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/CompVis/stable-diffusion-v1-4/resolve/main/unet/diffusion_pytorch_model.bin

The above exception was the direct cause of the following exception:

EntryNotFoundError Traceback (most recent call last)
EntryNotFoundError: 404 Client Error. (Request ID: Root=1-63c89090-55fc2dc506dac38a192716e1)

Entry Not Found for url: https://huggingface.co/CompVis/stable-diffusion-v1-4/resolve/main/unet/diffusion_pytorch_model.bin.

During handling of the above exception, another exception occurred:

OSError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/diffusers/modeling_utils.py in _get_model_file(cls, pretrained_model_name_or_path, weights_name, subfolder, cache_dir, force_download, proxies, resume_download, local_files_only, use_auth_token, user_agent, revision)
    627 )
    628 except EntryNotFoundError:
--> 629 raise EnvironmentError(
    630 f"{pretrained_model_name_or_path} does not appear to have a file named {weights_name}."
    631 )

OSError: CompVis/stable-diffusion-v1-4 does not appear to have a file named diffusion_pytorch_model.bin.

```

---

<div class="post-metadata">

**Author:** ![dsb7](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@dsb7](https://discuss.huggingface.co/u/dsb7)\
**Post date:** [January 19, 2023, 5:32pm UTC](https://discuss.huggingface.co/t/error-while-loading-stable-diffusion-pipeline-from-pretrained/29978/2 "2023-01-19T17:32:46Z")

</div>

Looks like this issue has been fixed and I no longer face it.
