# Beginner stuck in python save\_onnx step at ""OSError: unable to load weights..."

**URL:** <https://discuss.huggingface.co/t/beginner-stuck-in-python-save-onnx-step-at-oserror-unable-to-load-weights/34648>\
**Category:** Beginners\
**Created:** [March 25, 2023, 6:08pm UTC](https://discuss.huggingface.co/t/beginner-stuck-in-python-save-onnx-step-at-oserror-unable-to-load-weights/34648 "2023-03-25T18:08:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eskimo9900](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@eskimo9900](https://discuss.huggingface.co/u/eskimo9900)\
**Post date:** [March 25, 2023, 6:08pm UTC](https://discuss.huggingface.co/t/beginner-stuck-in-python-save-onnx-step-at-oserror-unable-to-load-weights/34648/1 "2023-03-25T18:08:06Z")

</div>

Hello to all,

i am new to all of this, spent 3 days mostly reading, typing all those commands, getting miniconda3, then getting optional advice via reddit, then finding out that a “nvidia” error forces me to go the stable diffusion FOR AMD graphics journey, now day 3. i use  
**[this](https://pythoninoffice.com/run-stable-diffusion-amd-gpu-on-windows/)**  
tutorial with minor questions solving via web search. now stuck at a step during python save onnx.  
i know nothing about computers except the things that i encounter now beyond a daily life user interface. the error reads fully like this:  
"_OSError: unable to load weights from pytorch checkpoint file for_ C:user and so on, “models–CompVis–stable-diffusion-v1-4\snapshots\249dd2…” and so on. The error message ends with “If you tried to load a PyTorch model”…, but the suggested solution “from\_tf=True” gives another error message when i type it there.

Please help, i want to reach the goal, downloaded tons of GB of data and even with that tutorial it seems i’m almost finished. Non-english main language and laptop, please use simple english, thnx^^

---

<div class="post-metadata">

**Author:** ![eskimo9900](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@eskimo9900](https://discuss.huggingface.co/u/eskimo9900)\
**Post date:** [March 30, 2023, 7:32pm UTC](https://discuss.huggingface.co/t/beginner-stuck-in-python-save-onnx-step-at-oserror-unable-to-load-weights/34648/2 "2023-03-30T19:32:28Z")

</div>

Hello to all,  
is anybody able to help me with this detail? While i started to experiment with free to use online AI generators, they often create ugly results and i still hope to set up stab-di on my own system.

greetings
