Skip to content

Commit

Permalink
fix --controlnet-dir cli argument handling (Bing-su#231)
Browse files Browse the repository at this point in the history
Co-authored-by: ljleb <set>
  • Loading branch information
ljleb authored Jul 24, 2023
1 parent 6c57942 commit a71f0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controlnet_ext/controlnet_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_cn_model_dirs() -> list[Path]:
else:
cn_model_dir_old = None
ext_dir1 = shared.opts.data.get("control_net_models_path", "")
ext_dir2 = shared.opts.data.get("controlnet_dir", "")
ext_dir2 = getattr(shared.cmd_opts, "controlnet_dir", "")

dirs = [cn_model_dir]
for ext_dir in [cn_model_dir_old, ext_dir1, ext_dir2]:
Expand Down

0 comments on commit a71f0e2

Please sign in to comment.