stable-diffusion.cpp icon indicating copy to clipboard operation
stable-diffusion.cpp copied to clipboard

report a bug instead of crash when vae_decoder_only=True and using img2img

Open chinshou opened this issue 1 year ago • 2 comments

At now if we use new_sd_ctx with vae_decoder_only=true , the img2img api call will crash without any exception catched.

We had better checking the vae_decoder_only flag in the img2img function to report ng flag and return NULL instead of crash that is much more user friendly.

chinshou avatar Apr 23 '24 17:04 chinshou

this too =D

Windsander avatar Apr 25 '24 04:04 Windsander

The current API lacks extensive documentation, requiring users to have a deeper understanding of some code details. I'll find some time later to improve the documentation for certain APIs.

leejet avatar Apr 29 '24 14:04 leejet