TheLastBen / fast-stable-diffusion

fast-stable-diffusion + DreamBooth
MIT License
7.55k stars 1.31k forks source link

NameError: name 'Use_Latest_Working_Commit' is not defined #2146

Open yaroslavvaran opened 1 year ago

yaroslavvaran commented 1 year ago

When i try to launch SD i get this error. I already reinstalled sd-web-ui and using latest version of the notebook.

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
[<ipython-input-1-1748aac0c7fa>](https://localhost:8080/#) in <cell line: 24>()
     25   get_ipython().run_line_magic('cd', '/content/gdrive/$mainpth/sd/stable-diffusion-$blasphemy/modules/')
     26 
---> 27   if Use_Latest_Working_Commit:
     28     get_ipython().system('wget -q -O paths.py https://github.com/TheLastBen/fast-stable-diffusion/raw/5632d2ef7fffd940976538d270854ec4faf26855/AUTOMATIC1111_files/paths.py')
     29     get_ipython().system('wget -q -O extras.py https://github.com/AUTOMATIC1111/stable-diffusion-$blasphemy/raw/a9eab236d7e8afa4d6205127904a385b2c43bb24/modules/extras.py')

NameError: name 'Use_Latest_Working_Commit' is not defined
ganeshrk1342 commented 1 year ago

I am getting the same error. How do I fix it?

TheLastBen commented 1 year ago

you need to run all the cells from the top

ruheri commented 1 year ago

I have these problems

Error loading script: api.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 248, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/api.py", line 9, in from modules.api import api File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/api/api.py", line 8, in from gradio.processing_utils import decode_base64_to_file ImportError: cannot import name 'decode_base64_to_file' from 'gradio.processing_utils' (/usr/local/lib/python3.10/dist-packages/gradio/processing_utils.py)

Error loading script: batch_hijack.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 248, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/batch_hijack.py", line 7, in from scripts import external_code File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 8, in from modules.api import api File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/api/api.py", line 8, in from gradio.processing_utils import decode_base64_to_file ImportError: cannot import name 'decode_base64_to_file' from 'gradio.processing_utils' (/usr/local/lib/python3.10/dist-packages/gradio/processing_utils.py)

Error loading script: controlnet.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 248, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 12, in from scripts import global_state, hook, external_code, processor, batch_hijack, controlnet_version File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 8, in from modules.api import api File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/api/api.py", line 8, in from gradio.processing_utils import decode_base64_to_file ImportError: cannot import name 'decode_base64_to_file' from 'gradio.processing_utils' (/usr/local/lib/python3.10/dist-packages/gradio/processing_utils.py)

ControlNet v1.1.173 Error loading script: external_code.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 248, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 8, in from modules.api import api File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/api/api.py", line 8, in from gradio.processing_utils import decode_base64_to_file ImportError: cannot import name 'decode_base64_to_file' from 'gradio.processing_utils' (/usr/local/lib/python3.10/dist-packages/gradio/processing_utils.py)

Calculating sha256 for /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/model.ckpt: 4c86efd062ea772972dd068c3870773f1fd9a37ba9a288ee79ec848448ce7785 Loading weights [4c86efd062] from /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/model.ckpt Creating model from config: /content/gdrive/MyDrive/sd/stable-diffusion-webui/configs/v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Downloading (…)olve/main/vocab.json100% 961k/961k [00:00<00:00, 2.67MB/s] Downloading (…)olve/main/merges.txt100% 525k/525k [00:00<00:00, 1.86MB/s] Downloading (…)cial_tokens_map.json100% 389/389 [00:00<00:00, 359kB/s] Downloading (…)okenizer_config.json100% 905/905 [00:00<00:00, 757kB/s] Downloading (…)lve/main/config.json100% 4.52k/4.52k [00:00<00:00, 2.98MB/s] Applying scaled dot product cross attention optimization. Textual inversion embeddings loaded(0): Model loaded in 43.4s (calculate hash: 17.6s, load weights from disk: 10.6s, create model: 9.7s, apply weights to model: 3.7s, apply half(): 1.0s, move model to device: 0.7s). Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 337, in webui() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 240, in webui shared.demo = modules.ui.create_ui();shared.demo.queue(concurrency_count=999999,status_update_rate=0.1) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 461, in create_ui txt2img_prompt, txt2img_prompt_styles, txt2img_negativeprompt, submit, , _, txt2img_prompt_style_apply, txt2img_save_style, txt2img_paste, extra_networks_button, token_counter, token_button, negative_token_counter, negative_token_button = create_toprow(is_img2img=False) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 284, in create_toprow with gr.Row(elem_id=f"{id_part}_toprow", variant="compact"): File "/usr/local/lib/python3.10/dist-packages/gradio/layouts.py", line 44, in init super().init(visible=visible, elem_id=elem_id, kwargs) File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 274, in init super().init(visible=visible, render=render, kwargs) File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 79, in init self.render() File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 94, in render if isinstance(self, components.TempFileManager): AttributeError: module 'gradio.components' has no attribute 'TempFileManager'