Closed litvagen closed 9 months ago
Same issue, Deforum is not working with SD Forge
Same issue, Deforum is not working with SD Forge
Deforum, ReActor, FaceFusion do not work. FaceSwaplab doesn't save images in the output. I haven't tested anything else yet. I was thinking of switching to this UI, but now I don't know.
Same issue here also.
I compared ui_common.py in forge and vanilla automatic1111 and looks like the class OutputPanel() doesn't exist in the vanilla version. That's the class the error message is complaining about.
create_output_panel() in forge uses the class extensively and it's assigned to res, which is referenced in the error message.
I'm not skilled enough to refactor the code but I hope that helps with identifying and fixing the issue.
Quick update : replacing ui.py, ui_common.py, and ui_postprocessing.py with the versions from vanilla automatic1111 seems to enable deforum, and no error messages on the command line. I replaced these three as they all referenced create_output_panel() which isn't in the vanilla code.
Will do some further testing.
So deforum wants the sd-webui-controlnet extension to be installed to work properly. It won't do much unless it can detect it. It's disabled by default even if you install it as an extension, after restarting the UI it will still be disabled.
forge has it's own extension, sd_forge_controlnet, and a couple other related controlnet extensions, disabling these is possible but it's still not possible to enable the sd-webui-controlnet extension
Hacking together a simple fix for deforum even just for personal use might be difficult. It uses the code :
cnet = importlib.import_module('extensions.sd-webui-controlnet.scripts.external_code', 'external_code')
but the built in controlnet isn't accessible as an extension as far as I can tell.
The builtin sd_forge_controlnet extension does not include external_code.py which is what deforum is looking for.
external_code.py is included in the folder
extensions-builtin\sd_forge_controlnet\lib_controlnet
modifying deforum to include this, instead of sd-webui-controlnet.scripts.external_code, throws an error about not being able to find get_models().
That's after replacing the aforementioned ui scripts, or it won't get that far.
In forge, get_models is defined in ldm_patched\modules\controlnet.py
Like I said, I've probably not got the credentials to go much deeper than this in terms of analysis. I'm guessing, unless someone has a better overview of the codebase in general, it'd be a lot of work to hack a fix together.
Same issue for me, seems you've already looked further into it than I have the skills to do...
I'll be looking into it next week. Here a super quick hack to at least get something rendering: https://github.com/rewbs/deforum-for-automatic1111-webui/tree/forge-experimentation now https://github.com/deforum-art/sd-forge-deforum . No controlnet yet, so this is really just a very early hack to help me start to understand the landscape. :)
Thank you very much for your efforts. Deforum is still a very cool program. I really hope that you will succeed
17 лютого 2024, 21:45:05, від "Robin Fernandes" @.***>:
I'll be looking into it next week. Here a super quick hack to at least get something rendering: https://github.com/rewbs/deforum-for-automatic1111-webui/tree/forge-experimentation . No controlnet yet, so this is really just a very early hack to help me start to understand the landscape. :) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
--=-PA9uDFLdMnswM491OA5B Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64
PGh0bWw+PGJvZHk+PHNwYW4gc3R5bGU9ImRpc3BsYXk6YmxvY2s7IiBjbGFzcz0ieGZtXzQzNDYx OTY3Ij48ZGl2PjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTpBcmlhbDtmb250LXNpemU6MTJwdDts aW5lLWhlaWdodDoxNHB0OyI+VGhhbmsgeW91IHZlcnkgbXVjaCBmb3IgeW91ciBlZmZvcnRzLiBE ZWZvcnVtIGlzIHN0aWxsIGEgdmVyeSBjb29sIHByb2dyYW0uIEkgcmVhbGx5IGhvcGUgdGhhdCB5 b3Ugd2lsbCBzdWNjZWVkPC9zcGFuPjwvZGl2Pg0KPGRpdj48YnIvPjwvZGl2Pg0KPGRpdj48aT48 c3BhbiBzdHlsZT0iZm9udC1zaXplOjEwcHQ7bGluZS1oZWlnaHQ6MTJwdDsiPjxzcGFuIHN0eWxl PSJmb250LWZhbWlseTpBcmlhbDsiPjE3INC70Y7RgtC+0LPQviAyMDI0LCAyMTo0NTowNSwg0LLR ltC0DQogICAgIlJvYmluIEZlcm5hbmRlcyIgJmx0Ozwvc3Bhbj48YSBocmVmPSJtYWlsdG86bm90 aWZpY2F0aW9uc0BnaXRodWIuY29tIiB0YXJnZXQ9Il9ibGFuayI+PHNwYW4gc3R5bGU9ImZvbnQt ZmFtaWx5OkFyaWFsOyI+bm90aWZpY2F0aW9uc0BnaXRodWIuY29tPC9zcGFuPjwvYT48c3BhbiBz dHlsZT0iZm9udC1mYW1pbHk6QXJpYWw7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5MDhAZ2l0aHViLmNvbSZndDs8L3NwYW4+PC9kaXY+DQo8L2Rpdj4NCjwvYmxvY2txdW90 ZT48L3NwYW4+PC9ib2R5PjwvaHRtbD4NCg==
--=-PA9uDFLdMnswM491OA5B--
same issue with "infinite-zoom" extension.
D:\tools\AI\stable-diffusion-webui\extensions\infinite-zoom-automatic1111-webui-main\iz_helpers\ui.py:253: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
output_video = gr.Video(label="Output").style(width=512, height=512)
*** Error executing callback ui_tabs_callback for D:\tools\AI\stable-diffusion-webui\extensions\infinite-zoom-automatic1111-webui-main\scripts\infinite-zoom.py
Traceback (most recent call last):
File "D:\tools\AI\stable-diffusion-webui\modules\script_callbacks.py", line 183, in ui_tabs_callback
res += c.callback() or []
File "D:\tools\AI\stable-diffusion-webui\extensions\infinite-zoom-automatic1111-webui-main\iz_helpers\ui.py", line 254, in on_ui_tabs
(
TypeError: cannot unpack non-iterable OutputPanel object
---
Running on local URL: http://127.0.0.1:7860
Thank you sir rewbs :) tried this and it worked for my purposes. I don't use controlnet as of yet, haven't really felt the need, so just being able to interpolate between some parameters works perfectly, and a second or two less per iteration, which helps for long animations.
New home for the Deforum extension for Forge: https://github.com/deforum-art/sd-forge-deforum
KUDOS to Rewbs and all developers for these amazing tools! =D
Here's a lowres minimal test using Deforum and Parseq on forge.
Settings: Dreamshaper LCM model, LCM sampler, steps 8, CFG 2.
That's great work :)
That's great work :)
Thank you optisynapsis.
There's lots to learn still. 👽
I think this issue can be closed now that there is a working deforum extension for Forge.
Checklist
What happened?
I get error in console - TypeError: cannot unpack non-iterable OutputPanel object
Steps to reproduce the problem
Deforum not runing in webui
What should have happened?
Webui not show me deforum tab
What browsers do you use to access the UI ?
Google Chrome
Sysinfo
sysinfo-2024-02-07-07-48.json
Console logs
Additional information
No response