volotat / SD-CN-Animation

This script allows to automate video stylization task using StableDiffusion and ControlNet.
MIT License
806 stars 61 forks source link

An exception occurred while trying to process the frame: list index out of range #134

Open click2balaji opened 1 year ago

click2balaji commented 1 year ago

I got this error when creating vid2vid "IndexError: list index out of range". Can anybody help me to fix this error image

volotat commented 1 year ago

@click2balaji Have you tried methods to fix this issue described in the readme file?

click2balaji commented 1 year ago

I tried uninstalling the sckit-image as mentioned in the readme file, but got this response image image

Let me know if I am doing this wrong @volotat

volotat commented 1 year ago

@click2balaji There was a typo in the readme file. It's supposed to be 'scikit-image'. I also removed the exact version from the requirements. Please try to update the extension and restart webui. If the error remains try to do pip install scikit-image==0.19.2 --no-cache-dir Tell me if it works.

click2balaji commented 1 year ago

Tried installing this in this path: image

This was the error i got, let me know if iam doing this in the right path and how to fix this @volotat image

These were the settings i used image

Let me know what can be done pls

volotat commented 1 year ago

It seems that something is not compiling properly while scikit-image installing. No idea what can help in this situation, I think it's better to look up similar problems at the scikit issues.

click2balaji commented 1 year ago

@volotat will there a chance if i reinstall this extension/automatic1111/python?

ElevatWebDesign commented 1 year ago

@volotat, is it maybe an issue with the python version installed? Tried everything including scikit reinstall and still no luck.

ElevatWebDesign commented 1 year ago

@volotat @click2balaji

I think I resolved the issue, although had to create it first to test. Try:

pip install pip-tools pip-compile requirements.in pip install -r requirements.txt

The requirements.in file should contain the packages and versions you need, for example:

rembg==2.0.30 fastapi==0.87.0 numpy==1.23.5 pillow==9.3.0 scikit-image==0.19.2

Run it in terminal or cmd prompt and then relaunch the Web UI. Try create an image with the required model first, then open the extension and try again.

Also install scitkit-learn and see if it helps.

TripleKiller666 commented 1 year ago

You tried to uninstall the SYSTEM component not the VENV one. When you enter your StableDiffusion Folder from CMD, go to "../venv/scripts/" then type in CMD: activate

now you should have something like below:

(venv) C:\Users\Trixmaster\StableDiffusion\venv\scripts\

Here you type in your PiP commands like: "pip install scikit-image==0.19.2 --no-cache-dir"

That way it gets installed into your VENV (Virtual Environment) inside the StableDiffusion Folder.

When you just open the cmd without activating the VENV first, then you install the component into your SYSTEM instead, and not just into the VENV.