sd-webui-mov2mov icon indicating copy to clipboard operation
sd-webui-mov2mov copied to clipboard

Mov2mov don´t load after AUTOMATIC1111 stable-diffusion-webui update 1.9.0

Open Yuugenbrose opened this issue 10 months ago • 26 comments

*** Error loading script: m2m_ui.py Traceback (most recent call last): File "E:\stable-diffusion-webui\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\stable-diffusion-webui\modules\script_loading.py", line 14, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "E:\stable-diffusion-webui\extensions\sd-webui-mov2mov\scripts\m2m_ui.py", line 23, in from modules.ui import ( ImportError: cannot import name 'create_sampler_and_steps_selection' from 'modules.ui' (E:\stable-diffusion-webui\modules\ui.py)

Yuugenbrose avatar Apr 13 '24 21:04 Yuugenbrose

me too

A3734 avatar Apr 14 '24 02:04 A3734

me too, any solution?

BigShaka77 avatar Apr 14 '24 22:04 BigShaka77

me too, any solution?

I think is the same problem here: https://github.com/Scholar01/sd-webui-mov2mov/issues/146#issuecomment-2054157728

jcvijr avatar Apr 14 '24 23:04 jcvijr

#146 Thanks!!

A3734 avatar Apr 15 '24 03:04 A3734

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

tshr-d-dragon avatar Apr 19 '24 07:04 tshr-d-dragon

Not working for me, god I love amd stable diffusion (sarcasm)

riccorohl avatar Apr 23 '24 01:04 riccorohl

@riccorohl

Try installing the 1.7.0. version of stable difffusion webui, can be found here

tshr-d-dragon avatar Apr 23 '24 05:04 tshr-d-dragon

Before the mv2mov window did not appear, although now it appears when pressing generate does not do anything at all.

MysticFurur0RE avatar May 01 '24 22:05 MysticFurur0RE

Hey guys, do we have a resolution to this as yet?

kernsaunders2257 avatar May 19 '24 16:05 kernsaunders2257

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

tshr-d-dragon avatar May 19 '24 19:05 tshr-d-dragon

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

I sure did, and what it did was remove the errors I was getting in the terminal and it corrected the tab not being seen. However, now when hitting the "Generate" button, absolutely nothing happens, within the UI and within the terminal. It's just unresponsive.

I'm on version 1.9.3

kernsaunders2257 avatar May 20 '24 00:05 kernsaunders2257

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

I sure did, and what it did was remove the errors I was getting in the terminal and it corrected the tab not being seen. However, now when hitting the "Generate" button, absolutely nothing happens, within the UI and within the terminal. It's just unresponsive.

I'm on version 1.9.3

@kernsaunders2257 Can you try installing the 1.7.0. version of stable difffusion webui, can be found here

tshr-d-dragon avatar May 20 '24 08:05 tshr-d-dragon

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

I sure did, and what it did was remove the errors I was getting in the terminal and it corrected the tab not being seen. However, now when hitting the "Generate" button, absolutely nothing happens, within the UI and within the terminal. It's just unresponsive. I'm on version 1.9.3

@kernsaunders2257 Can you try installing the 1.7.0. version of stable difffusion webui, can be found here

Ok, I tried it. I used " Git reset --hard cf2772f" to install version 1.7.0

I put back in the function "def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name"

but no luck with this, I can see the tab, everything about it seems to look ok, but it's still non-functional. Hitting "Generate" just does nothing, but in UI and in Terminal.

However, this weird thing occurs image That how it is upon switching to the tab and it's stuck like - again, nothing happening in the terminal.

kernsaunders2257 avatar May 20 '24 14:05 kernsaunders2257

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

I sure did, and what it did was remove the errors I was getting in the terminal and it corrected the tab not being seen. However, now when hitting the "Generate" button, absolutely nothing happens, within the UI and within the terminal. It's just unresponsive. I'm on version 1.9.3

@kernsaunders2257 Can you try installing the 1.7.0. version of stable difffusion webui, can be found here

Ok, I tried it. I used " Git reset --hard cf2772f" to install version 1.7.0

I put back in the function "def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name"

but no luck with this, I can see the tab, everything about it seems to look ok, but it's still non-functional. Hitting "Generate" just does nothing, but in UI and in Terminal.

However, this weird thing occurs image That how it is upon switching to the tab and it's stuck like - again, nothing happening in the terminal.

what are you trying to do? Text2Img? What are the instance/system specs? Can you share more details?

tshr-d-dragon avatar May 20 '24 14:05 tshr-d-dragon

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

I sure did, and what it did was remove the errors I was getting in the terminal and it corrected the tab not being seen. However, now when hitting the "Generate" button, absolutely nothing happens, within the UI and within the terminal. It's just unresponsive. I'm on version 1.9.3

@kernsaunders2257 Can you try installing the 1.7.0. version of stable difffusion webui, can be found here

Ok, I tried it. I used " Git reset --hard cf2772f" to install version 1.7.0

I put back in the function "def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name"

but no luck with this, I can see the tab, everything about it seems to look ok, but it's still non-functional. Hitting "Generate" just does nothing, but in UI and in Terminal.

However, this weird thing occurs image That how it is upon switching to the tab and it's stuck like - again, nothing happening in the terminal.

Just use this file https://github.com/Scholar01/sd-webui-mov2mov/files/14972506/m2m_ui.zip It fixes both user interface and the missing function.

jcvijr avatar May 20 '24 14:05 jcvijr

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

I sure did, and what it did was remove the errors I was getting in the terminal and it corrected the tab not being seen. However, now when hitting the "Generate" button, absolutely nothing happens, within the UI and within the terminal. It's just unresponsive. I'm on version 1.9.3

@kernsaunders2257 Can you try installing the 1.7.0. version of stable difffusion webui, can be found here

Ok, I tried it. I used " Git reset --hard cf2772f" to install version 1.7.0 I put back in the function "def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name" but no luck with this, I can see the tab, everything about it seems to look ok, but it's still non-functional. Hitting "Generate" just does nothing, but in UI and in Terminal. However, this weird thing occurs image That how it is upon switching to the tab and it's stuck like - again, nothing happening in the terminal.

Just use this file https://github.com/Scholar01/sd-webui-mov2mov/files/14972506/m2m_ui.zip It fixes both user interface and the missing function.

Unfortunately produced errors image

kernsaunders2257 avatar May 20 '24 14:05 kernsaunders2257

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

I sure did, and what it did was remove the errors I was getting in the terminal and it corrected the tab not being seen. However, now when hitting the "Generate" button, absolutely nothing happens, within the UI and within the terminal. It's just unresponsive. I'm on version 1.9.3

@kernsaunders2257 Can you try installing the 1.7.0. version of stable difffusion webui, can be found here

Ok, I tried it. I used " Git reset --hard cf2772f" to install version 1.7.0 I put back in the function "def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name" but no luck with this, I can see the tab, everything about it seems to look ok, but it's still non-functional. Hitting "Generate" just does nothing, but in UI and in Terminal. However, this weird thing occurs image That how it is upon switching to the tab and it's stuck like - again, nothing happening in the terminal.

Just use this file https://github.com/Scholar01/sd-webui-mov2mov/files/14972506/m2m_ui.zip It fixes both user interface and the missing function.

Unfortunately produced errors image

Same issue bro do this , add :

def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

and replace m2m_ui with this file https://github.com/Scholar01/sd-webui-mov2mov/files/14972506/m2m_ui.zip I use 1.9.4

alieverlove avatar Jun 15 '24 23:06 alieverlove

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

I sure did, and what it did was remove the errors I was getting in the terminal and it corrected the tab not being seen. However, now when hitting the "Generate" button, absolutely nothing happens, within the UI and within the terminal. It's just unresponsive. I'm on version 1.9.3

@kernsaunders2257 Can you try installing the 1.7.0. version of stable difffusion webui, can be found here

Ok, I tried it. I used " Git reset --hard cf2772f" to install version 1.7.0 I put back in the function "def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name" but no luck with this, I can see the tab, everything about it seems to look ok, but it's still non-functional. Hitting "Generate" just does nothing, but in UI and in Terminal. However, this weird thing occurs image That how it is upon switching to the tab and it's stuck like - again, nothing happening in the terminal.

Just use this file https://github.com/Scholar01/sd-webui-mov2mov/files/14972506/m2m_ui.zip It fixes both user interface and the missing function.

Unfortunately produced errors image

Same issue bro do this , add :

def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

and replace m2m_ui with this file https://github.com/Scholar01/sd-webui-mov2mov/files/14972506/m2m_ui.zip I use 1.9.4

if oyu dont mind me asking, im new to this and dont really understand what you mean by "add this" i understand you want me to paste this somewhere, but have no clue how to open or find the correct file. I can replace the file mentioned np, but lost on the "def create..."

BlankThrow avatar Aug 01 '24 17:08 BlankThrow

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

I sure did, and what it did was remove the errors I was getting in the terminal and it corrected the tab not being seen. However, now when hitting the "Generate" button, absolutely nothing happens, within the UI and within the terminal. It's just unresponsive. I'm on version 1.9.3

@kernsaunders2257 Can you try installing the 1.7.0. version of stable difffusion webui, can be found here

Ok, I tried it. I used " Git reset --hard cf2772f" to install version 1.7.0 I put back in the function "def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name" but no luck with this, I can see the tab, everything about it seems to look ok, but it's still non-functional. Hitting "Generate" just does nothing, but in UI and in Terminal. However, this weird thing occurs image That how it is upon switching to the tab and it's stuck like - again, nothing happening in the terminal.

Just use this file https://github.com/Scholar01/sd-webui-mov2mov/files/14972506/m2m_ui.zip It fixes both user interface and the missing function.

Unfortunately produced errors image

Same issue bro do this , add : def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name and replace m2m_ui with this file https://github.com/Scholar01/sd-webui-mov2mov/files/14972506/m2m_ui.zip I use 1.9.4

if oyu dont mind me asking, im new to this and dont really understand what you mean by "add this" i understand you want me to paste this somewhere, but have no clue how to open or find the correct file. I can replace the file mentioned np, but lost on the "def create..."

Its mentioned there only. Copy and paste the function in modules/ui.py

tshr-d-dragon avatar Aug 01 '24 19:08 tshr-d-dragon

@kernsaunders2257 Did you try above solution???

Just copy this function in modules/ui.py

def create_sampler_and_steps_selection(choices, tabname):
    return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

I sure did, and what it did was remove the errors I was getting in the terminal and it corrected the tab not being seen. However, now when hitting the "Generate" button, absolutely nothing happens, within the UI and within the terminal. It's just unresponsive. I'm on version 1.9.3

@kernsaunders2257 Can you try installing the 1.7.0. version of stable difffusion webui, can be found here

Ok, I tried it. I used " Git reset --hard cf2772f" to install version 1.7.0 I put back in the function "def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name" but no luck with this, I can see the tab, everything about it seems to look ok, but it's still non-functional. Hitting "Generate" just does nothing, but in UI and in Terminal. However, this weird thing occurs image That how it is upon switching to the tab and it's stuck like - again, nothing happening in the terminal.

Just use this file https://github.com/Scholar01/sd-webui-mov2mov/files/14972506/m2m_ui.zip It fixes both user interface and the missing function.

Unfortunately produced errors image

Same issue bro do this , add :

def create_sampler_and_steps_selection(choices, tabname): return scripts.scripts_txt2img.script('Sampler').steps, scripts.scripts_txt2img.script('Sampler').sampler_name

and replace m2m_ui with this file https://github.com/Scholar01/sd-webui-mov2mov/files/14972506/m2m_ui.zip I use 1.9.4

Yeah, this doesn't work for me on 1.9.4. Interface is fine but Generate does nothing. What I tried:

  1. deleted and reinstalled mov2mov extension
  2. replaced m2m.ui with zipped file
  3. added line in modules/ui.py
  4. deleted and rebuilt venv folder
  5. downgraded to 1.8.0 as a test

Still broken. Generate button does nothing. This is pretty much a dead extension for me now. Does anyone know of a working extension that does something similar to mov2mov? Thanks.

janziig avatar Aug 07 '24 16:08 janziig

Yeah having the same issue ive gone through all the steps and have had the same exact errors as you I'm gonna keep working on it see what happens i guess

EdnaMode22 avatar Aug 18 '24 22:08 EdnaMode22

Yeah having the same issue ive gone through all the steps and have had the same exact errors as you I'm gonna keep working on it see what happens i guess

You guys could try v2v helper. It's not so complex like mov2mov, but it is an option. We don't know when the owner will be able to fix it.

scuti0 avatar Aug 19 '24 00:08 scuti0

Yeah having the same issue ive gone through all the steps and have had the same exact errors as you I'm gonna keep working on it see what happens i guess

My only other thought, since other people have gotten it to work, is that some other extension is messing it up somehow. Could try uninstalling everything, but I feel like I'm tired of fighting this one. Maybe v2v helper will be an option.

janziig avatar Aug 19 '24 01:08 janziig

Yeah ive done multiple fresh reinstalls with no extensions only mov2mov, no luck

EdnaMode22 avatar Aug 19 '24 10:08 EdnaMode22

Hello, Do you have a fix? I still have issue with install/generate, even if I replace m2m_ui.py

ControlNet preprocessor location: C:\Users\\Documents\webui_forge_cu121_torch21\webui\models\ControlNetPreprocessor
*** Error loading script: module_ui_extensions.py
    Traceback (most recent call last):
      File "C:\Users\\Documents\webui_forge_cu121_torch21\webui\modules\scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "C:\Users\\Documents\webui_forge_cu121_torch21\webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Users\\Documents\webui_forge_cu121_torch21\webui\extensions\sd-webui-mov2mov\scripts\module_ui_extensions.py", line 46, in <module>
        obj=gradio.components.IOComponent,
    AttributeError: module 'gradio.components' has no attribute 'IOComponent'

---
00:20:35 - ReActor - STATUS - Running v0.7.1-a2 on Device: CUDA
Loading weights [15012c538f] from C:\Users\\Documents\webui_forge_cu121_torch21\webui\models\Stable-diffusion\realisticVisionV51_v51VAE.safetensors
2024-08-24 00:20:36,313 - ControlNet - INFO - ControlNet UI callback registered.
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
To load target model JointCLIPTextEncoder
Begin to load 1 model
[Memory Management] Current Free GPU Memory (MB) =  11071.9990234375
[Memory Management] Model Memory (MB) =  308.21982765197754
[Memory Management] Minimal Inference Memory (MB) =  1024.0
[Memory Management] Estimated Remaining GPU Memory (MB) =  9739.779195785522
Moving model(s) has taken 0.11 seconds
Model loaded in 3.8s (load weights from disk: 0.1s, forge load real models: 2.6s, calculate empty prompt: 1.0s).
Running on local URL:  http://127.0.0.1:7860

Thanks for being a Gradio user! If you have questions or feedback, please join our Discord server and chat with us: https://discord.gg/feTf9x3ZSB

To create a public link, set `share=True` in `launch()`.
Startup time: 21.1s (prepare environment: 7.5s, launcher: 1.8s, import torch: 3.0s, setup paths: 0.7s, initialize shared: 0.1s, other imports: 0.6s, load scripts: 2.2s, create ui: 3.3s, gradio launch: 1.8s).
Traceback (most recent call last):
  File "C:\Users\\Documents\webui_forge_cu121_torch21\system\python\lib\site-packages\gradio\queueing.py", line 536, in process_events
    response = await route_utils.call_process_api(
  File "C:\Users\\Documents\webui_forge_cu121_torch21\system\python\lib\site-packages\gradio\route_utils.py", line 285, in call_process_api
    output = await app.get_blocks().process_api(
  File "C:\Users\\Documents\webui_forge_cu121_torch21\system\python\lib\site-packages\gradio\blocks.py", line 1919, in process_api
    inputs = await self.preprocess_data(
  File "C:\Users\\Documents\webui_forge_cu121_torch21\system\python\lib\site-packages\gradio\blocks.py", line 1647, in preprocess_data
    inputs_cached = block.data_model(**inputs_cached)  # type: ignore
TypeError: gradio.components.label.LabelData() argument after ** must be a mapping, not str

Thanks

Naografix avatar Aug 23 '24 22:08 Naografix

Yeah I'm afraid I still could not get it to work after trying everything I ended up just using the V2V extension as a temporary work around until a fix/update is available

EdnaMode22 avatar Aug 24 '24 12:08 EdnaMode22