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

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

Open
Yuugenbrose opened this issue Apr 13, 2024 · 28 comments

Comments

@Yuugenbrose
Copy link

*** 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)

@A3734
Copy link

A3734 commented Apr 14, 2024

me too

@BigShaka77
Copy link

me too, any solution?

@jcvijr
Copy link

jcvijr commented Apr 14, 2024

me too, any solution?

I think is the same problem here: #146 (comment)

@A3734
Copy link

A3734 commented Apr 15, 2024

#146 Thanks!!

@tshr-d-dragon
Copy link

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

@riccorohl
Copy link

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

@tshr-d-dragon
Copy link

@riccorohl

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

@MysticFurur0RE
Copy link

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

@kernsaunders2257
Copy link

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

@tshr-d-dragon
Copy link

@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

@kernsaunders2257
Copy link

@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

@tshr-d-dragon
Copy link

@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

@kernsaunders2257
Copy link

@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.

@tshr-d-dragon
Copy link

@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?

@jcvijr
Copy link

jcvijr commented May 20, 2024

@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.

@kernsaunders2257
Copy link

@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

@alieverlove
Copy link

@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

@BlankThrow
Copy link

BlankThrow commented Aug 1, 2024

@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..."

@tshr-d-dragon
Copy link

@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

@janziig
Copy link

janziig commented Aug 7, 2024

@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.

@EdnaMode22
Copy link

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

@scuti0
Copy link

scuti0 commented Aug 19, 2024

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.

@janziig
Copy link

janziig commented Aug 19, 2024

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.

@EdnaMode22
Copy link

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

@Naografix
Copy link

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

@EdnaMode22
Copy link

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

@Scholar01
Copy link
Owner

I'm so sorry everyone, my daughter was born last year and I needed to spend a lot of time on work/family balance, so this project has been on hold for nearly a year. I'll try to fix it in the near future

@ccas010
Copy link

ccas010 commented Oct 21, 2024

I'm so sorry everyone, my daughter was born last year and I needed to spend a lot of time on work/family balance, so this project has been on hold for nearly a year. I'll try to fix it in the near future

Congratz buddy!

Please fix it!

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

17 participants