volotat / SD-CN-Animation

This script allows to automate video stylization task using StableDiffusion and ControlNet.
MIT License
806 stars 61 forks source link

Module 'gradio' has no attribute 'Code' #147

Closed Malakid21 closed 1 year ago

Malakid21 commented 1 year ago

I install SD-CN-Animation and after restart i get this error. image

volotat commented 1 year ago

Check out this disscussion. https://github.com/volotat/SD-CN-Animation/discussions/106 Simple webui update seems to fix it.

Malakid21 commented 1 year ago

I did an up date, unfortunately the problem remains ;/

volotat commented 1 year ago

You may try to update gradio manually with
pip install gradio --upgrade only make sure that you do this inside webui environment

Malakid21 commented 1 year ago

I installed and still

Error executing callback ui_tabs_callback for D:\AI\stable-diffusion-webui\extensions\SD-CN-Animation\scripts\base_ui.py Traceback (most recent call last): File "D:\AI\stable-diffusion-webui\modules\script_callbacks.py", line 120, in ui_tabs_callback res += c.callback() or [] File "D:\AI\stable-diffusion-webui\extensions\SD-CN-Animation\scripts\base_ui.py", line 179, in on_ui_tabs export_setting_json = gr.Code(value='') AttributeError: module 'gradio' has no attribute 'Code'

volotat commented 1 year ago

@Malakid21 Your gradio still outdated for some reason. This is the only reason why there is no 'Code' attribute. But can't say how to fix this in your case as I have no idea what may cause it.

Malakid21 commented 1 year ago

@volotat I find solution, i have "Inpaint Anythink" and i add some class that colide, i edit this and now all work. Thx for help :)