kabachuha / sd-webui-text2video

Auto1111 extension implementing text2video diffusion models (like ModelScope or VideoCrafter) using only Auto1111 webui dependencies
Other
1.29k stars 108 forks source link

[Bug]: Cannot install Text2Video #204

Open keybored13 opened 1 year ago

keybored13 commented 1 year ago

Is there an existing issue for this?

Are you using the latest version of the extension?

What happened?

Despite following the instructions and watching several videos on how to install, I still cannot get it to show up as a tab and it gives errors when loading webui-user.

I have installed StableDiffusion succesfully and been using it for months with no problems so far but just cannot get text2video to work.

Steps to reproduce the problem

  1. Go to .... webui-user.bat
  2. Press .... enter
  3. ... error messages appear and no text2video tab is created

What should have happened?

I should have a text2video tab

WebUI and Deforum extension Commit IDs

webui commit id - https://gitgud.io/AUTOMATIC1111/stable-diffusion-webui/-/commit/cca6e5212ddd77be7efdce2c27e475d3af436d85

txt2vid commit id - https://github.com/kabachuha/sd-webui-text2video/commit/3f4a109a69599d8d2209c60b966d1cf9ea946239

Torch version

1.12.1+cu113

What GPU were you using for launching?

Screenshot 2023-07-13 150603

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

Local PC setup (Windows)

Settings

Not sure which settings you mean?

Console logs

warning: redirecting to https://gitgud.io/AUTOMATIC1111/stable-diffusion-webui.git/
Already up to date.
venv "C:\ai\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)]
Commit hash: cca6e5212ddd77be7efdce2c27e475d3af436d85
Installing requirements for Web UI

Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Error loading script: api_t2v.py
Traceback (most recent call last):
  File "C:\ai\stable-diffusion-webui\modules\scripts.py", line 205, in load_scripts
    module = script_loading.load_module(scriptfile.path)
  File "C:\ai\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module
    exec(compiled, module.__dict__)
  File "C:\ai\stable-diffusion-webui\extensions\sd-webui-text2video\scripts\api_t2v.py", line 16, in <module>
    current_directory = os.path.dirname(os.path.abspath(__file__))
NameError: name '__file__' is not defined

Error loading script: text2vid.py
Traceback (most recent call last):
  File "C:\ai\stable-diffusion-webui\modules\scripts.py", line 205, in load_scripts
    module = script_loading.load_module(scriptfile.path)
  File "C:\ai\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module
    exec(compiled, module.__dict__)
  File "C:\ai\stable-diffusion-webui\extensions\sd-webui-text2video\scripts\text2vid.py", line 17, in <module>
    current_directory = os.path.dirname(os.path.abspath(__file__))
NameError: name '__file__' is not defined

LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading weights [81761151] from C:\ai\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.ckpt
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0):
Model loaded.
Warning: Bad ui setting value: img2img/Mask mode/value: Draw mask; Default value "Inpaint masked" will be used instead.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.

Additional information

Pretty new to this so please go easy. :D