opparco / stable-diffusion-webui-two-shot

Latent Couple extension (two shot diffusion port)
MIT License
717 stars 152 forks source link

Bug in forge #68

Open edisonblack55555 opened 1 week ago

edisonblack55555 commented 1 week ago

I can't use it in webui forge

Error calling: E:\桌面\sd-webui-forge\extensions\stable-diffusion-webui-two-shot\scripts\two_shot.py/ui Traceback (most recent call last): File "E:\桌面\sd-webui-forge\modules\scripts.py", line 545, in wrap_call return func(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "E:\桌面\sd-webui-forge\extensions\stable-diffusion-webui-two-shot\scripts\two_shot.py", line 130, in ui visual_regions = gr.Gallery(label="Regions").style(grid=(4, 4, 4, 8), height="auto") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Gallery' object has no attribute 'style'


Error calling: E:\桌面\sd-webui-forge\extensions\stable-diffusion-webui-two-shot\scripts\two_shot.py/ui Traceback (most recent call last): File "E:\桌面\sd-webui-forge\modules\scripts.py", line 545, in wrap_call return func(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "E:\桌面\sd-webui-forge\extensions\stable-diffusion-webui-two-shot\scripts\two_shot.py", line 130, in ui visual_regions = gr.Gallery(label="Regions").style(grid=(4, 4, 4, 8), height="auto") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Gallery' object has no attribute 'style'

Traceback (most recent call last): File "E:\桌面\sd-webui-forge.ext\Lib\threading.py", line 1045, in _bootstrap_inner self.run() File "", line 99, in run File "", line 94, in _run_old_run_func File "", line 1649, in reraise File "", line 92, in _run_old_run_func File "E:\桌面\sd-webui-forge.ext\Lib\threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "E:\桌面\sd-webui-forge\webui.py", line 135, in webui_worker create_api(app) File "E:\桌面\sd-webui-forge\webui.py", line 45, in create_api api = Api(app, queue_lock) ^^^^^^^^^^^^^^^^^^^^ File "E:\桌面\sd-webui-forge\modules\api\api.py", line 263, in init self.default_script_arg_txt2img = self.init_default_script_args(txt2img_script_runner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\桌面\sd-webui-forge\modules\api\api.py", line 330, in init_default_script_args if script.ui(script.is_img2img): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\桌面\sd-webui-forge\extensions\stable-diffusion-webui-two-shot\scripts\two_shot.py", line 130, in ui visual_regions = gr.Gallery(label="Regions").style(grid=(4, 4, 4, 8), height="auto") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^