mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 01:24:36 +00:00
fixed sd to work on larger images by adding tiling, also limit res for sd1.5
This commit is contained in:
parent
f153a14daf
commit
5b90eeaf17
3 changed files with 35 additions and 2 deletions
|
@ -1054,6 +1054,16 @@ struct sd_ctx_t {
|
|||
StableDiffusionGGML* sd = NULL;
|
||||
};
|
||||
|
||||
void set_sd_vae_tiling(sd_ctx_t* ctx, bool tiling)
|
||||
{
|
||||
ctx->sd->vae_tiling = tiling;
|
||||
}
|
||||
|
||||
int get_loaded_sd_version(sd_ctx_t* ctx)
|
||||
{
|
||||
return ctx->sd->version;
|
||||
}
|
||||
|
||||
sd_ctx_t* new_sd_ctx(const char* model_path_c_str,
|
||||
const char* clip_l_path_c_str,
|
||||
const char* clip_g_path_c_str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue