Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ControlNet #34

Closed
Dintan opened this issue May 28, 2024 · 2 comments
Closed

ControlNet #34

Dintan opened this issue May 28, 2024 · 2 comments

Comments

@Dintan
Copy link

Dintan commented May 28, 2024

Whenever I run the prediction it finishes loading all weights but fails to run ControlNet, it accurately finds the extension, but it fails here. The extension is cloned from the repository, so no code changed there. Any suggestions?

File "/root/.pyenv/versions/3.10.4/lib/python3.10/site-packages/cog/server/worker.py", line 189, in _setup
run_setup(self._predictor)
File "/root/.pyenv/versions/3.10.4/lib/python3.10/site-packages/cog/predictor.py", line 84, in run_setup
predictor.setup()
File "/src/predict.py", line 134, in setup
self.api.img2imgapi(req)
File "/src/modules/api/api.py", line 445, in img2imgapi
processed = process_images(p)
File "/src/modules/processing.py", line 734, in process_images
res = process_images_inner(p)
File "/src/extensions/sd-webui-controlnet-revert-2912-unit_enable/scripts/batch_hijack.py", line 56, in processing_process_images_hijack
cn_is_batch, batches, output_dir, input_file_names = get_cn_batches(p)
File "/src/extensions/sd-webui-controlnet-revert-2912-unit_enable/scripts/batch_hijack.py", line 196, in get_cn_batches
units = external_code.get_all_units_in_processing(p)
File "/src/extensions/sd-webui-controlnet-revert-2912-unit_enable/internal_controlnet/external_code.py", line 133, in get_all_units_in_processing
return get_all_units(p.scripts, p.script_args)
File "/src/extensions/sd-webui-controlnet-revert-2912-unit_enable/internal_controlnet/external_code.py", line 146, in get_all_units
return get_all_units_from(script_args[cn_script.args_from : cn_script.args_to])
File "/src/extensions/sd-webui-controlnet-revert-2912-unit_enable/internal_controlnet/external_code.py", line 174, in get_all_units_from
all_units = [
File "/src/extensions/sd-webui-controlnet-revert-2912-unit_enable/internal_controlnet/external_code.py", line 175, in
to_processing_unit(script_arg)
File "/src/extensions/sd-webui-controlnet-revert-2912-unit_enable/internal_controlnet/external_code.py", line 228, in to_processing_unit
return ControlNetUnit.from_dict(unit)
File "/src/extensions/sd-webui-controlnet-revert-2912-unit_enable/internal_controlnet/args.py", line 420, in from_dict
return ControlNetUnit(**values)
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 2 validation errors for ControlNetUnit
resize_mode
(type=assertion_error)
control_mode
value is not a valid enumeration member; permitted: 'Balanced', 'My prompt is more important', 'ControlNet is more important' (type=type_error.enum; enum_values=[<ControlMode.BALANCED: 'Balanced'>, <ControlMode.PROMPT: 'My prompt is more important'>, <ControlMode.CONTROL: 'ControlNet is more important'>])

@e-cal
Copy link
Contributor

e-cal commented May 29, 2024

#16 (comment)

@philz1337x
Copy link
Owner

@e-cal added a great download-weights.py file to make all this easier!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants