Skip to content

how to use, say, "reference only" now, that "None" model is gone via api? #2791

Closed Answered by huchenlei
dermesut asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think the API ever returns "None" in model list unless you are using a very old version of ControlNet. See model names impl here:

def update_cn_models():
cn_models.clear()
ext_dirs = (shared.opts.data.get("control_net_models_path", None), getattr(shared.cmd_opts, 'controlnet_dir', None))
extra_lora_paths = (extra_lora_path for extra_lora_path in ext_dirs
if extra_lora_path is not None and os.path.exists(extra_lora_path))
paths = [cn_models_dir, cn_models_dir_old, *extra_lora_paths]
for path in paths:
sort_by = shared.opts.data.get(
"control_net_models_sort…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dermesut
Comment options

You must be logged in to vote
3 replies
@huchenlei
Comment options

@dermesut
Comment options

@dermesut
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants