Merge branch 'Add-LyCORIS-parsing' of https://github.com/goldmojo/Stable-Diffusion-Webui-Civitai-Helper into Add-LyCORIS-parsing
parent
53ca8030f1
commit
2aa71a6df9
|
|
@ -23,7 +23,7 @@ model_type_dict = {
|
||||||
"TextualInversion": "ti",
|
"TextualInversion": "ti",
|
||||||
"Hypernetwork": "hyper",
|
"Hypernetwork": "hyper",
|
||||||
"LORA": "lora",
|
"LORA": "lora",
|
||||||
"LoCon": "lora",
|
"LoCon": "lycoris",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ folders = {
|
||||||
"hyper": os.path.join(root_path, "models", "hypernetworks"),
|
"hyper": os.path.join(root_path, "models", "hypernetworks"),
|
||||||
"ckp": os.path.join(root_path, "models", "Stable-diffusion"),
|
"ckp": os.path.join(root_path, "models", "Stable-diffusion"),
|
||||||
"lora": os.path.join(root_path, "models", "Lora"),
|
"lora": os.path.join(root_path, "models", "Lora"),
|
||||||
"lycoris": os.path.join(root_path, "models", "LyCORIS"),
|
"lycoris": os.path.join(root_path, "models", "LyCORIS"),
|
||||||
}
|
}
|
||||||
|
|
||||||
exts = (".bin", ".pt", ".safetensors", ".ckpt")
|
exts = (".bin", ".pt", ".safetensors", ".ckpt")
|
||||||
|
|
@ -43,8 +43,8 @@ def get_custom_model_folder():
|
||||||
if shared.cmd_opts.lora_dir and os.path.isdir(shared.cmd_opts.lora_dir):
|
if shared.cmd_opts.lora_dir and os.path.isdir(shared.cmd_opts.lora_dir):
|
||||||
folders["lora"] = shared.cmd_opts.lora_dir
|
folders["lora"] = shared.cmd_opts.lora_dir
|
||||||
|
|
||||||
|
if shared.cmd_opts.lyco_dir and os.path.isdir(shared.cmd_opts.lyco_dir):
|
||||||
|
folders["lycoris"] = shared.cmd_opts.lyco_dir
|
||||||
|
|
||||||
|
|
||||||
# write model info to file
|
# write model info to file
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue