lllyasviel / lllyasviel/ControlNet
Error When Run Controlnet With Reference Only
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.1k
- Forks
- 3k
- PR merge metrics
- No merged PRs in 30d
Description
02:55:52-373099 ERROR Running script process:
C:\Users\Frank\Vlad\automatic\extensions-builtin\sd-webui-controlnet\scripts\controlnet.py:
TypeError
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ C:\Users\Frank\Vlad\automatic\modules\scripts.py:406 in process │
│ │
│ 405 │ │ │ │ args = p.per_script_args.get(script.title(), p.script_args[script.args_f │
│ > 406 │ │ │ │ script.process(p, *args, **kwargs) │
│ 407 │ │ │ │ s.append(f'{script.title()}:{round(time.time()-t0, 2)}s') │
│ │
│ C:\Users\Frank\Vlad\automatic\extensions-builtin\sd-webui-controlnet\scripts\controlnet.py:699 in process │
│ │
│ 698 │ │ for idx, unit in enumerate(self.enabled_units): │
│ > 699 │ │ │ Script.bound_check_params(unit) │
│ 700 │
│ │
│ C:\Users\Frank\Vlad\automatic\extensions-builtin\sd-webui-controlnet\scripts\controlnet.py:649 in │
│ bound_check_params │
│ │
│ 648 │ │ │
│ > 649 │ │ defaults = tuple( │
│ 650 │ │ │ cfg[i]['value'] if i < len(cfg) else default │
│ │
│ C:\Users\Frank\Vlad\automatic\extensions-builtin\sd-webui-controlnet\scripts\controlnet.py:650 in │
│ │
│ 649 │ │ defaults = tuple( │
│ > 650 │ │ │ cfg[i]['value'] if i < len(cfg) else default │
│ 651 │ │ │ for i, default in enumerate((512, 0, 0)) │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
TypeError: 'NoneType' object is not subscriptable
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in extensions-builtin/sd-webui-controlnet/scripts/controlnet.py at process around line 699 and bound_check_params around lines 649-650. Reproduce the reference-only run and inspect the configuration entry that is None; done means the run no longer raises this TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100