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

BlockFunction' object has no attribute 'input' #23

Open
zentrocdot opened this issue Oct 12, 2024 · 1 comment
Open

BlockFunction' object has no attribute 'input' #23

zentrocdot opened this issue Oct 12, 2024 · 1 comment

Comments

@zentrocdot
Copy link

I get for about an hour following error message while starting the local server:

*** Error executing callback app_started_callback for /home/hades/ssd-sandisk/stable-diffusion-webui/extensions/sd-webui-traintrain/scripts/traintrain.py
Traceback (most recent call last):
File "/home/hades/ssd-sandisk/stable-diffusion-webui/modules/script_callbacks.py", line 256, in app_started_callback
c.callback(demo, app)
File "/home/hades/ssd-sandisk/stable-diffusion-webui/extensions/sd-webui-traintrain/scripts/traintrain.py", line 632, in get_params_components
img2img_params = params[0].input
AttributeError: 'BlockFunction' object has no attribute 'input'

It has to be checked, if error correction can be done by following step:

go into traintrain.py in the extension dir and change line 632 from

img2img_params = params[0].input

to

img2img_params = params[0].inputs

Doing this the error is gone. The missing 's' makes also sense, due to gradios 'inputs' component .

Apart from that, I haven't gone into any more detail as I don't need the module next time.

hako-mikan added a commit that referenced this issue Oct 12, 2024
@hako-mikan
Copy link
Owner

Thanks! Fixed.

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

2 participants