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

[Bug]: When I try to run ModelScope text2video it does nothing after pressing 'Generate'. #243

Open
2 tasks done
rookiemann opened this issue Mar 28, 2024 · 26 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@rookiemann
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Are you using the latest version of the extension?

  • I have the modelscope text2video extension updated to the lastest version and I still have the issue.

What happened?

When I try to generate a video from text, nothing at all happens. The button is activated, yet on the console of the webui it does nothing as if nothing was pressed.

This is a fresh install of all extensions, and I had to jump through a few hoops to even get it to start up properly. First issue I had was this one - #239

Which I corrected using the fix there.

I then encountered another issue as I do have animatediff extension installed here - continue-revolution/sd-webui-animatediff#118

I fixed the issue using the fix there

Now everything starts fine, as far as the webui console gives no errors at all. Just when I press Generate:
image

It says it's running but on webui console:

image

It doesn't run at all.

Steps to reproduce the problem

  1. Go to text2video
  2. Press generate
  3. Expect generation

What should have happened?

Text2video should have started to generate

WebUI and Deforum extension Commit IDs

webui commit id - bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
txt2vid commit id - 989f5cf

Torch version

absl-py 2.1.0
accelerate 0.21.0
aenum 3.1.15
aiofiles 23.2.1
aiohttp 3.9.3
aiosignal 1.3.1
albumentations 1.4.1
altair 5.2.0
antlr4-python3-runtime 4.9.3
anyio 3.7.1
async-timeout 4.0.3
attrs 23.2.0
av 11.0.0
beautifulsoup4 4.12.3
blendmodes 2022
certifi 2024.2.2
cffi 1.16.0
chardet 5.2.0
charset-normalizer 3.3.2
clean-fid 0.1.35
click 8.1.7
clip 1.0
colorama 0.4.6
coloredlogs 15.0.1
colorlog 6.8.2
contourpy 1.2.0
cssselect2 0.7.0
cycler 0.12.1
Cython 3.0.9
decorator 4.0.11
deprecation 2.1.0
depth_anything 2024.1.22.0
easydict 1.13
einops 0.4.1
embreex 2.17.7.post4
exceptiongroup 1.2.0
facexlib 0.3.0
fake-useragent 1.5.1
fastapi 0.94.0
ffmpy 0.3.2
filelock 3.13.1
filterpy 1.4.5
flatbuffers 24.3.7
fonttools 4.50.0
frozenlist 1.4.1
fsspec 2024.3.0
ftfy 6.2.0
fvcore 0.1.5.post20221221
gdown 5.1.0
gitdb 4.0.11
GitPython 3.1.32
gradio 3.41.2
gradio_client 0.5.0
h11 0.12.0
handrefinerportable 2024.2.12.0
httpcore 0.15.0
httpx 0.24.1
huggingface-hub 0.21.4
humanfriendly 10.0
idna 3.6
imageio 2.34.0
imageio-ffmpeg 0.4.9
importlib-resources 5.12.0
inflection 0.5.1
insightface 0.7.3
iopath 0.1.9
jax 0.4.25
Jinja2 3.1.3
joblib 1.3.2
jsonmerge 1.8.0
jsonschema 4.21.1
jsonschema-specifications 2023.12.1
kiwisolver 1.4.5
kornia 0.6.7
lark 1.1.2
lazy_loader 0.3
lightning-utilities 0.10.1
llvmlite 0.42.0
lxml 5.1.0
mapbox-earcut 1.0.1
markdown-it-py 3.0.0
MarkupSafe 2.1.5
matplotlib 3.8.3
mdurl 0.1.2
mediapipe 0.10.11
ml-dtypes 0.3.2
moviepy 0.2.3.2
mpmath 1.3.0
multidict 6.0.5
mutagen 1.47.0
natsort 8.4.0
networkx 3.2.1
numba 0.59.0
numexpr 2.9.0
numpy 1.26.2
omegaconf 2.2.3
onnx 1.15.0
onnxruntime 1.17.1
open-clip-torch 2.20.0
opencv-contrib-python 4.9.0.80
opencv-python 4.9.0.80
opencv-python-headless 4.9.0.80
OpenPIV 0.25.2
opt-einsum 3.3.0
orjson 3.9.15
packaging 24.0
pandas 2.2.1
piexif 1.1.3
Pillow 9.5.0
PIMS 0.6.0
pip 24.0
portalocker 2.8.2
prettytable 3.10.0
protobuf 3.20.3
psutil 5.9.5
pycollada 0.8
pycparser 2.21
pydantic 1.10.14
pydub 0.25.1
Pygments 2.17.2
pyparsing 3.1.2
pyreadline3 3.4.1
PySocks 1.7.1
python-dateutil 2.9.0.post0
python-multipart 0.0.9
pytorch-lightning 1.9.4
pytz 2024.1
PyWavelets 1.5.0
pywin32 306
PyYAML 6.0.1
referencing 0.34.0
regex 2023.12.25
reportlab 4.1.0
requests 2.31.0
resize-right 0.0.2
rich 13.7.1
rpds-py 0.18.0
Rtree 1.2.0
safetensors 0.4.2
scikit-image 0.21.0
scikit-learn 1.4.1.post1
scipy 1.12.0
semantic-version 2.10.0
Send2Trash 1.8.2
sentencepiece 0.2.0
setuptools 63.2.0
shapely 2.0.3
six 1.16.0
slicerator 1.1.0
smmap 5.0.1
sniffio 1.3.1
sounddevice 0.4.6
soupsieve 2.5
spandrel 0.1.6
starlette 0.26.1
svg.path 6.3
svglib 1.5.1
sympy 1.12
tabulate 0.9.0
termcolor 2.4.0
threadpoolctl 3.3.0
tifffile 2024.2.12
timm 0.9.16
tinycss2 1.2.1
tokenizers 0.13.3
tomesd 0.1.3
toolz 0.12.1
torch 2.1.2+cu121
torchdiffeq 0.2.3
torchmetrics 1.3.2
torchsde 0.2.6
torchvision 0.16.2+cu121
tqdm 4.66.2
trampoline 0.1.2
transformers 4.30.2
trimesh 4.2.0
typing_extensions 4.10.0
tzdata 2024.1
urllib3 2.2.1
uvicorn 0.28.0
vhacdx 0.0.6
wcwidth 0.2.13
webencodings 0.5.1
websockets 11.0.3
xatlas 0.0.9
xformers 0.0.23.post1
xxhash 3.4.1
yacs 0.1.8
yarl 1.9.4
ZipUnicode 1.1.1

What GPU were you using for launching?

RTX 2080 Super 8 vram

On which platform are you launching the webui backend with the extension?

Local PC setup (Windows)

Settings

image
This screenshot

Console logs

venv "D:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
Launching Web UI with arguments: --xformers --medvram --api
CivitAI Browser+: Aria2 RPC started
ControlNet preprocessor location: D:\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-03-28 07:47:11,206 - ControlNet - INFO - ControlNet v1.1.441
2024-03-28 07:47:11,445 - ControlNet - INFO - ControlNet v1.1.441
Loading weights [6ce0161689] from D:\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: D:\stable-diffusion-webui\configs\v1-inference.yaml
Applying attention optimization: xformers... done.
Model loaded in 3.2s (load weights from disk: 0.1s, create model: 0.5s, apply weights to model: 1.8s, apply half(): 0.4s, calculate empty prompt: 0.4s).
2024-03-28 07:47:15,763 - ControlNet - INFO - ControlNet UI callback registered.
*Deforum ControlNet support: enabled*
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 35.5s (prepare environment: 8.1s, import torch: 9.8s, import gradio: 2.1s, setup paths: 2.3s, initialize shared: 0.5s, other imports: 1.2s, load scripts: 4.9s, create ui: 5.0s, gradio launch: 0.6s, add APIs: 1.0s).

Additional information

This is my submission.

@rookiemann rookiemann added the bug Something isn't working label Mar 28, 2024
@nemodleo
Copy link

nemodleo commented Mar 28, 2024 via email

@fmnt-whoa
Copy link

I'm having the same issue. I can see my ModelScope and Zeroscope v2 XL models in the Model dropdown within the txt2video tab.

But when I click on "Generate", no generation begins. No progress in the Stable Diffusion command prompt. It's like it's not making the connection. Just like you, @rookiemann, the orange "Generate" button switches to the two gray buttons "Interrupt" and "Skip".

One thought, I have Stable Diffusion installed on a different drive (d:/) - not my system drive (win11, c:/). @rookiemann - Any chance your SD installation is also on a different drive? I wonder if it's not reading something.

@diegoparma
Copy link

Same problem here... I did no less than 5 fresh new install but no output at all :D

@rookiemann
Copy link
Author

I'm having the same issue. I can see my ModelScope and Zeroscope v2 XL models in the Model dropdown within the txt2video tab.

But when I click on "Generate", no generation begins. No progress in the Stable Diffusion command prompt. It's like it's not making the connection. Just like you, @rookiemann, the orange "Generate" button switches to the two gray buttons "Interrupt" and "Skip".

One thought, I have Stable Diffusion installed on a different drive (d:/) - not my system drive (win11, c:/). @rookiemann - Any chance your SD installation is also on a different drive? I wonder if it's not reading something.

Yes I have my whole installation on an external D drive, but that was never a problem before.

@fmnt-whoa
Copy link

Yes I have my whole installation on an external D drive, but that was never a problem before.

Copy. Was text2vid working in a previous iteration for you?

@rookiemann
Copy link
Author

Yes it was working on a older installation of automatic1111, I can't remember which. I was away from using the repo for a long time and decided to update it and all my extensions. After that it wasn't working. I then did entire new installs of both automatic1111 and latest text2video extension just to be sure and the problem persisted. I never tried installing on C:, I just don't have the room.

@fmnt-whoa
Copy link

Legacy versions may be the answer then in the interim. I only recently installed SD and t2v so latest versions for me as of a couple weeks ago.

But the fact that it doesn't actually initiate anything in the command prompt makes me think it's gotta be in the launch process, otherwise we'd have some indication or failure shown.

@rookiemann
Copy link
Author

rookiemann commented Apr 8, 2024

Legacy versions may be the answer then in the interim. I only recently installed SD and t2v so latest versions for me as of a couple weeks ago.

But the fact that it doesn't actually initiate anything in the command prompt makes me think it's gotta be in the launch process, otherwise we'd have some indication or failure shown.

I think I want to make a separate install of older repos because I really like this extension and want to use older version. Did you try that? Can you suggest which older versions and where to get them to make the separate install to use this?

@ninii3
Copy link

ninii3 commented Apr 9, 2024

I have exactly same problem... took me a day to figure out but still got no solution ...

@rookiemann
Copy link
Author

I have exactly same problem... took me a day to figure out but still got no solution ...

Do you have AnimateDiff extension as well? I'm wondering if there is a connection there.

@fmnt-whoa
Copy link

I have exactly same problem... took me a day to figure out but still got no solution ...

@ninii3 - Can you share your Command Prompt output as well? Does Text2Video even attempt to initiate?

Do you have AnimateDiff extension as well? I'm wondering if there is a connection there.

@rookiemann - I know that question is not for me, but I did install a few plugins prior text2video. I don't remember which. But you did say you did a clean install of Stable Diffusion and text2video and still had the issue, right? Was AnimateDiff a part of the clean install?

I think I want to make a separate install of older repos because I really like this extension and want to use older version. Did you try that? Can you suggest which older versions and where to get them to make the separate install to use this?

@rookiemann - I've only ever installed the most recent version of it, and it didn't work. I'd need to do the same as you and just start installing them one-by-one, working backwards, to see if we get a working one. I haven't had time to attempt that yet though.

@ninii3
Copy link

ninii3 commented Apr 9, 2024

I have exactly same problem... took me a day to figure out but still got no solution ...

@ninii3 - Can you share your Command Prompt output as well? Does Text2Video even attempt to initiate?

Do you have AnimateDiff extension as well? I'm wondering if there is a connection there.

@rookiemann - I know that question is not for me, but I did install a few plugins prior text2video. I don't remember which. But you did say you did a clean install of Stable Diffusion and text2video and still had the issue, right? Was AnimateDiff a part of the clean install?

I think I want to make a separate install of older repos because I really like this extension and want to use older version. Did you try that? Can you suggest which older versions and where to get them to make the separate install to use this?

@rookiemann - I've only ever installed the most recent version of it, and it didn't work. I'd need to do the same as you and just start installing them one-by-one, working backwards, to see if we get a working one. I haven't had time to attempt that yet though.

nothing happened at all and no error in my terminal as well.

@ninii3
Copy link

ninii3 commented Apr 10, 2024

I have exactly same problem... took me a day to figure out but still got no solution ...我也遇到了完全相同的问题...

@ninii3 - Can you share your Command Prompt output as well? Does Text2Video even attempt to initiate?- 你能分

Do you have AnimateDiff extension as well? I'm wondering if there is a connection there.你也安装了 AnimateDiff

@rookiemann - I know that question is not for me, but I did install a few plugins prior text2video. I don't remember which. But you did say you did a clean install of Stable Diffusion and text2video and still had the issue, right? Was AnimateDiff a part of the clean install?-

I think I want to make a separate install of older repos because I really like this extension and want to use older version. Did you try that? Can you suggest which older versions and where to get them to make the separate install to use this?

@rookiemann - I've only ever installed the most recent version of it, and it didn't work. I'd need to do the same as you and just start installing them one-by-one, working backwards, to see if we get a working one. I haven't had time to attempt that yet though.

do you know how to install the past version ?

@BigShaka77
Copy link

Same problem I still haven't found a solution, someone has?

@rookiemann
Copy link
Author

I really want to use this. I did a whole new fresh install of automatic1111 and this extension direct on my C:\stable-diffusion-webui with no other extensions at all, just the 2 and I still have this problem.

Where can we get older repos copies?

@BigShaka77
Copy link

Could anyone solve it? I have tried all the possible solutions I have found and nothing solves it.

@rookiemann
Copy link
Author

Could anyone solve it? I have tried all the possible solutions I have found and nothing solves it.

I decided to try out Comfy UI for the first time just to try the ComfyUI_ModelScopeT2V repo that's built from this repo and I got it working.

I never used comfy UI before and now I wished I had gotten into it much sooner, it's pretty good

@sion42x
Copy link

sion42x commented Apr 23, 2024

I have exactly same problem... took me a day to figure out but still got no solution ...

Do you have AnimateDiff extension as well? I'm wondering if there is a connection there.

I do not and having the same issue.

@gumaerc
Copy link

gumaerc commented May 10, 2024

So, I ran into this issue today. Apologies as I didn't copy the exact error and have automatic1111 shut down right to to run something else on my GPU, but I did find out that this is a client side Javascript error. The server is not doing anything because it is not receiving a request. If you look in your browser's console, you will see a JS error relating to Gradio. It's trying to run a document.getElementById and failing, then JS stops executing and the request never gets sent to the server.

@phyzical
Copy link

a work around for now is to go into console and paste

function setSubmitButtonsVisibility(tabname, showInterrupt, showSkip, showInterrupting) {
    gradioApp().getElementById(tabname + '_interrupt').style.display = showInterrupt ? "block" : "none";
    gradioApp().getElementById(tabname + '_skip').style.display = showSkip ? "block" : "none";
}

@Enchante503
Copy link

Enchante503 commented May 24, 2024

I changed all the ModelScopes in the code by renaming the ModelScope folder in text2Video because it conflicted with a separately installed ModelScope.
but Processing does not start even if I press the Generate button.

“ModelScope” is displayed in the DropDown List, is it correct?
It seems like the Model is not being loaded correctly.
Can someone please show me a screenshot of the correct state?

P.S. Model loading seems to have been resolved.

>physical
Which file and where do I add it?

@phyzical
Copy link

open the dev tools in your browser before pressing generate

paste the above snippet, that will let the button work until you refresh.

Model scope didnt work for me though

But the videocrafter did

@Enchante503
Copy link

physical Thank you !!

function setSubmitButtonsVisibility(tabname, showInterrupt, showSkip, showInterrupting) {
    gradioApp().getElementById(tabname + '_interrupt').style.display = showInterrupt ? "block" : "none";
    gradioApp().getElementById(tabname + '_skip').style.display = showSkip ? "block" : "none";
}

his code,
/extensions/sd-webui-text2video/javascript/t2v_progressbar.js
After adding this, it started working!

Other errors were also displayed
I successfully solved the problems one by one and the video is now generated!

Thanks again to physical!

@BigShaka77
Copy link

open the dev tools in your browser before pressing generate

paste the above snippet, that will let the button work until you refresh.

Model scope didnt work for me though

But the videocrafter did

Captura de pantalla 2024-05-24 092341

Thanks for your code, I was finally able to make a lot of progress with this problem, I put the modelscope as shown in this image and it recognizes it, but when I hit generate it shows me this, and I don't know how to solve it, any ideas?

Captura de pantalla 2024-05-24 092643

@BigShaka77
Copy link

Videocrafter stays generating forever and nothing happens.
Captura de pantalla 2024-05-24 093126

@Enchante503
Copy link

There should be an error displayed on the console (terminal), so you need to deal with it.
No one can help you unless you tell them what the error is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants