Skip to content

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

@chinshou

Description

@chinshou

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions