mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-07 09:02:04 +00:00
flux2 image editing
This commit is contained in:
parent
71069253b7
commit
ffdc1b0f9f
2 changed files with 3 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ dry_seq_break_max = 128
|
|||
extra_images_max = 4 # for kontext/qwen img
|
||||
|
||||
# global vars
|
||||
KcppVersion = "1.107"
|
||||
KcppVersion = "1.107.1"
|
||||
showdebug = True
|
||||
kcpp_instance = None #global running instance
|
||||
global_memory = {"tunnel_url": "", "restart_target":"", "input_to_exit":False, "load_complete":False, "restart_override_config_target":""}
|
||||
|
|
|
|||
|
|
@ -787,6 +787,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
|
|||
bool is_wan = (loadedsdver == SDVersion::VERSION_WAN2 || loadedsdver == SDVersion::VERSION_WAN2_2_I2V || loadedsdver == SDVersion::VERSION_WAN2_2_TI2V);
|
||||
bool is_qwenimg = (loadedsdver == SDVersion::VERSION_QWEN_IMAGE);
|
||||
bool is_kontext = (loadedsdver==SDVersion::VERSION_FLUX && !loaded_model_is_chroma(sd_ctx));
|
||||
bool is_flux2 = (loadedsdver == SDVersion::VERSION_FLUX2 || loadedsdver == SDVersion::VERSION_FLUX2_KLEIN);
|
||||
|
||||
if (loadedsdver == SDVersion::VERSION_FLUX)
|
||||
{
|
||||
|
|
@ -914,7 +915,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
|
|||
wan_imgs.push_back(extraimage_reference);
|
||||
}
|
||||
}
|
||||
else if(is_qwenimg)
|
||||
else if(is_qwenimg || is_flux2)
|
||||
{
|
||||
uint8_t * loaded = load_image_from_b64(extra_image_data[i],nx2,ny2);
|
||||
if(loaded)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue