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 10 months 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