mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
z image limit cfg scale to 3.0 max
This commit is contained in:
@@ -244,6 +244,11 @@
|
||||
"minimum": 0,
|
||||
"type": "number"
|
||||
},
|
||||
"dry_penalty_last_n": {
|
||||
"description": "KoboldCpp ONLY. DRY last n tokens penalized value.",
|
||||
"minimum": 0,
|
||||
"type": "number"
|
||||
},
|
||||
"dry_sequence_breakers": {
|
||||
"description": "An array of string sequence breakers for DRY.",
|
||||
"items": {
|
||||
@@ -2304,7 +2309,7 @@
|
||||
"height": 512,
|
||||
"seed": -1,
|
||||
"clip_skip": -1,
|
||||
"sampler_name": "Euler a"
|
||||
"sampler_name": "Euler"
|
||||
},
|
||||
"schema": {
|
||||
"properties": {
|
||||
@@ -2399,7 +2404,7 @@
|
||||
"height": 512,
|
||||
"seed": -1,
|
||||
"clip_skip": -1,
|
||||
"sampler_name": "Euler a",
|
||||
"sampler_name": "Euler",
|
||||
"denoising_strength": 0.6,
|
||||
"init_images":[],
|
||||
"mask":"",
|
||||
|
||||
@@ -784,6 +784,17 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
|
||||
}
|
||||
}
|
||||
|
||||
if(loadedsdver == SDVersion::VERSION_Z_IMAGE)
|
||||
{
|
||||
if(sd_params->cfg_scale > 3.0f)
|
||||
{
|
||||
if (!sd_is_quiet && sddebugmode) {
|
||||
printf("Z-Image: clamping CFG Scale to 3.0 to preserve quality\n");
|
||||
}
|
||||
sd_params->cfg_scale = 3.0f;
|
||||
}
|
||||
}
|
||||
|
||||
if(is_wan && extra_image_data.size()==0 && is_img2img)
|
||||
{
|
||||
extra_image_data.push_back(img2img_data);
|
||||
|
||||
Reference in New Issue
Block a user