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

HLEP~colab Error in last step #266

Closed
328king opened this issue Sep 11, 2022 · 12 comments
Closed

HLEP~colab Error in last step #266

328king opened this issue Sep 11, 2022 · 12 comments

Comments

@328king
Copy link

328king commented Sep 11, 2022

AttributeError: module 'webui' has no attribute 'run_extras'
T.T

@328king
Copy link
Author

328king commented Sep 11, 2022

AttributeError Traceback (most recent call last)
in
10 txt2img=webui.wrap_gradio_gpu_call(modules.txt2img.txt2img),
11 img2img=webui.wrap_gradio_gpu_call(modules.img2img.img2img),
---> 12 run_extras=webui.wrap_gradio_gpu_call(webui.run_extras),
13 run_pnginfo=webui.run_pnginfo
14 )

AttributeError: module 'webui' has no attribute 'run_extras'

@328king 328king closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2022
@328king 328king reopened this Sep 11, 2022
@ponderer89
Copy link

getting same error

@tss-happens
Copy link

oh! yes i get the same!

@HalilCan
Copy link

HalilCan commented Sep 11, 2022

As a temporary measure, you can comment out the run_extras and run_pnginfo lines to avoid that. Or, if you must, assign then something else like run_extras=webui.wrap_gradio_gpu_call(webui.cmd_opts).
However, this means you will not be able to use the extras and pnginfo capabilities in the UI. Chief among these is upscaling.

You can still use text2img and img2img, though.

Edit: Commenting out doesn't work. The variables are necessary, so assign them something else. Demonstrated below.

@tss-happens
Copy link

As a temporary measure, you can comment out the run_extras and run_pnginfo lines to avoid that. Or, if you must, assign then something else like run_extras=webui.wrap_gradio_gpu_call(webui.cmd_opts). However, this means you will not be able to use the extras and pnginfo capabilities in the UI. Chief among these is upscaling.

You can still use text2img and img2img, though.

hey!
i am a compete layman and had to get into the world of colabs and all that because of Stable Diffusion possibilies for a digital artist.

i really like this app (thank you @AUTOMATIC1111) and trying to get it back working for me in the colab. i do not use extras or upscaling, so your solution seems to fit my needs, but i do not understand what (file?) exactly to change and where?

will super appreciate if you help a dummy.

@AUTOMATIC1111
Copy link
Owner

i update the collab and an anon confirmed it works for him now

@tss-happens
Copy link

i update the collab and an anon confirmed it works for him now

the previous error has changed to this one now:


ValueError Traceback (most recent call last)

in
3
4 import webui
----> 5 webui.webui()

1 frames

/usr/local/lib/python3.7/dist-packages/gradio/blocks.py in launch(self, inline, inbrowser, share, debug, enable_queue, max_threads, auth, auth_message, prevent_thread_lock, show_error, server_name, server_port, show_tips, height, width, encrypt, favicon_path, ssl_keyfile, ssl_certfile, ssl_keyfile_password, quiet, _frontend)
1065 if not self.share:
1066 raise ValueError(
-> 1067 "When running in Google Colab or when localhost is not accessible, a shareable link must be created. Please set share=True."
1068 )
1069 if is_colab and not quiet:

ValueError: When running in Google Colab or when localhost is not accessible, a shareable link must be created. Please set share=True.

@tss-happens
Copy link

@AUTOMATIC1111
it got fixed and works for me now. thanks!

@HalilCan
Copy link

HalilCan commented Sep 11, 2022

hey! i am a compete layman and had to get into the world of colabs and all that because of Stable Diffusion possibilies for a digital artist.

i really like this app (thank you @AUTOMATIC1111) and trying to get it back working for me in the colab. i do not use extras or upscaling, so your solution seems to fit my needs, but i do not understand what (file?) exactly to change and where?

Although this should be (?) fixed by now, in case you or anyone else has a similar problem:

In the final code cell (that launches the webui), you will find a code block that looks like this:

demo = modules.ui.create_ui(
	txt2img=webui.wrap_gradio_gpu_call(modules.txt2img.txt2img),
	img2img=webui.wrap_gradio_gpu_call(modules.img2img.img2img),
	run_extras=webui.wrap_gradio_gpu_call(webui.run_extras),
	run_pnginfo=webui.run_pnginfo
)

Instead, you can modify the last two lines turn it into this:

demo = modules.ui.create_ui(
	txt2img=webui.wrap_gradio_gpu_call(modules.txt2img.txt2img),
	img2img=webui.wrap_gradio_gpu_call(modules.img2img.img2img),
	run_extras=(),
	run_pnginfo=()
)

And the interface will launch without problems.
Like I mentioned above, this will (should) prevent the Extras and PNG Info tabs from being able to do anything.
You can still do text2img and img2img.

@TkonstAL
Copy link

I will check now whether it helped or not for collabs and unsubscribe.

@TkonstAL
Copy link

/content/stable-diffusion-webui Loading model from /content/stable-diffusion-webui/model.ckpt Global Step: 470000 LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. making attention of type 'vanilla' with 512 in_channels Working with z of shape (1, 4, 32, 32) = 4096 dimensions. making attention of type 'vanilla' with 512 in_channels Running on local URL: http://127.0.0.1:7860/

To create a public link, set share=True in launch(). I try open http://127.0.0.1:7860/ - non work. Why?

@328king
Copy link
Author

328king commented Sep 11, 2022

nice

@328king 328king closed this as completed Sep 11, 2022
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

6 participants