leejet / stable-diffusion.cpp

Stable Diffusion in pure C/C++
MIT License
2.91k stars 233 forks source link

do not free sd_ctx in load_from_file #204

Closed Jonathhhan closed 3 months ago

Jonathhhan commented 3 months ago

With this change I can load another model, when the sd_ctx is freed in load_from_model it crashes while loading a new model (I free the sd_ctx with free_sd_ctx first and create a new one for loading a new model).

Jonathhhan commented 3 months ago

That did not solve my issue. First it was working, and now it crashes again...