-
Notifications
You must be signed in to change notification settings - Fork 218
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues and checked the recent builds/commits of both this extension and the webui
Have you updated WebUI and this extension to the newest version?
- I have updated WebUI and this extension to the most up-to-date version
Do you understand that you should go to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues if you cannot install GroundingDINO?
- My problem is not about installing GroundingDINO
Do you know that you should use the newest ControlNet extension and enable external control if you want SAM extension to control ControlNet?
- I have updated ControlNet extension and enabled "Allow other script to control this extension"
What happened?
when use webui, and img2img,have an error, controlnet is not work, I have allowed other script to control this extension and the same time close the segment. But when I remove the segment, the controlnet is ok, img2img is ok

Steps to reproduce the problem
- Go to ....
- Press ....
- ...
What should have happened?
s
Commit where the problem happens
webui:
extension:
What browsers do you use to access the UI ?
No response
Command Line Arguments
linux .sh --xformers --api --api-log --enable-insecure-extension-accessConsole logs
Error running process: /a8root/work/sd_webui/stable-diffusion-webui_1/extensions/sd-webui-segment-anything/scripts/sam.py
Traceback (most recent call last):
File "/a8root/work/sd_webui/stable-diffusion-webui_1/modules/scripts.py", line 417, in process
script.process(p, *script_args)
File "/a8root/work/sd_webui/stable-diffusion-webui_1/extensions/sd-webui-segment-anything/scripts/sam.py", line 761, in process
process_unit.set_process_attributes(p)
File "/a8root/work/sd_webui/stable-diffusion-webui_1/extensions/sd-webui-segment-anything/scripts/process_params.py", line 87, in set_process_attributes
inpaint_image, inpaint_mask = self.sam_inpaint_unit.get_input_and_mask(inpaint_mask_blur)
File "/a8root/work/sd_webui/stable-diffusion-webui_1/extensions/sd-webui-segment-anything/scripts/process_params.py", line 45, in get_input_and_mask
mask = Image.open(self.output_mask_gallery[self.output_chosen_mask + 3]['name']).convert('L')
TypeError: 'bool' object is not subscriptable
Error running process: /a8root/work/sd_webui/stable-diffusion-webui_1/extensions/sd-webui-controlnet/scripts/controlnet.py
Traceback (most recent call last):
File "/a8root/work/sd_webui/stable-diffusion-webui_1/modules/scripts.py", line 417, in process
script.process(p, *script_args)
File "/a8root/work/sd_webui/stable-diffusion-webui_1/extensions/sd-webui-controlnet/scripts/controlnet.py", line 982, in process
self.enabled_units = self.get_enabled_units(p)
File "/a8root/work/sd_webui/stable-diffusion-webui_1/extensions/sd-webui-controlnet/scripts/controlnet.py", line 944, in get_enabled_units
unit = self.parse_remote_call(p, unit, idx)
File "/a8root/work/sd_webui/stable-diffusion-webui_1/extensions/sd-webui-controlnet/scripts/controlnet.py", line 796, in parse_remote_call
unit.enabled = selector(p, "control_net_enabled", unit.enabled, idx, strict=True)
AttributeError: 'list' object has no attribute 'enabled'
100%|██████████| 31/31 [00:32<00:00, 1.05s/it][
Total progress: 100%|██████████| 31/31 [00:32<00:00, 1.04s/it]
Total progress: 100%|██████████| 31/31 [00:32<00:00, 1.34it/s]Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels
