From a8694698fdf55487e6c9af3e3c9e1f8dc63839ff Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 16 Nov 2024 17:23:02 +0800 Subject: [PATCH] accept gguf text encoders for sd --- koboldcpp.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/koboldcpp.py b/koboldcpp.py index d8fc826b3..766809c62 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -3077,9 +3077,9 @@ def show_gui(): makecheckbox(images_tab, "Compress Weights (Saves Memory)", sd_quant_var, 8,command=togglesdquant,tooltiptxt="Quantizes the SD model weights to save memory. May degrade quality.") sd_quant_var.trace("w", changed_gpulayers_estimate) - makefileentry(images_tab, "T5-XXL File:", "Select Optional T5-XXL model file (SD3 or flux)",sd_t5xxl_var, 14, width=280, singlerow=True, filetypes=[("*.safetensors", "*.safetensors")],tooltiptxt="Select a .safetensors t5xxl file to be loaded.") - makefileentry(images_tab, "Clip-L File:", "Select Optional Clip-L model file (SD3 or flux)",sd_clipl_var, 16, width=280, singlerow=True, filetypes=[("*.safetensors", "*.safetensors")],tooltiptxt="Select a .safetensors t5xxl file to be loaded.") - makefileentry(images_tab, "Clip-G File:", "Select Optional Clip-G model file (SD3)",sd_clipg_var, 18, width=280, singlerow=True, filetypes=[("*.safetensors", "*.safetensors")],tooltiptxt="Select a .safetensors t5xxl file to be loaded.") + makefileentry(images_tab, "T5-XXL File:", "Select Optional T5-XXL model file (SD3 or flux)",sd_t5xxl_var, 14, width=280, singlerow=True, filetypes=[("*.safetensors *.gguf","*.safetensors *.gguf")],tooltiptxt="Select a .safetensors t5xxl file to be loaded.") + makefileentry(images_tab, "Clip-L File:", "Select Optional Clip-L model file (SD3 or flux)",sd_clipl_var, 16, width=280, singlerow=True, filetypes=[("*.safetensors *.gguf","*.safetensors *.gguf")],tooltiptxt="Select a .safetensors t5xxl file to be loaded.") + makefileentry(images_tab, "Clip-G File:", "Select Optional Clip-G model file (SD3)",sd_clipg_var, 18, width=280, singlerow=True, filetypes=[("*.safetensors *.gguf","*.safetensors *.gguf")],tooltiptxt="Select a .safetensors t5xxl file to be loaded.") sdvaeitem1,sdvaeitem2,sdvaeitem3 = makefileentry(images_tab, "Image VAE:", "Select Optional SD VAE file",sd_vae_var, 20, width=280, singlerow=True, filetypes=[("*.safetensors *.gguf", "*.safetensors *.gguf")],tooltiptxt="Select a .safetensors or .gguf SD VAE file to be loaded.") def toggletaesd(a,b,c): @@ -4175,19 +4175,19 @@ def main(launch_args,start_server=True): if dlfile: args.sdmodel = dlfile if args.sdt5xxl and args.sdt5xxl!="": - dlfile = download_model_from_url(args.sdt5xxl,[".safetensors"]) + dlfile = download_model_from_url(args.sdt5xxl,[".gguf",".safetensors"]) if dlfile: args.sdt5xxl = dlfile if args.sdclipl and args.sdclipl!="": - dlfile = download_model_from_url(args.sdclipl,[".safetensors"]) + dlfile = download_model_from_url(args.sdclipl,[".gguf",".safetensors"]) if dlfile: args.sdclipl = dlfile if args.sdclipg and args.sdclipg!="": - dlfile = download_model_from_url(args.sdclipg,[".safetensors"]) + dlfile = download_model_from_url(args.sdclipg,[".gguf",".safetensors"]) if dlfile: args.sdclipg = dlfile if args.sdvae and args.sdvae!="": - dlfile = download_model_from_url(args.sdvae,[".safetensors"]) + dlfile = download_model_from_url(args.sdvae,[".gguf",".safetensors"]) if dlfile: args.sdvae = dlfile if args.mmproj and args.mmproj!="":