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

AnimateDiff has completely stopped working on all systems, on all configurations (real\virtual machine, Windows 10\11, GPU\CPU) #398

Open
oaycreations opened this issue Oct 26, 2024 · 0 comments

Comments

@oaycreations
Copy link

Hello.
A few months ago, Animate Diff completely stopped working on any system with any configuration.
Before that, it worked on both Automatic1111's WebUI and Forge. The results were satisfactory.
Somewhere in August - it just stopped working. After updating Forge, AnimateDiff gives a bunch of errors in the terminal log, and the scroll with its interface no longer appears in the Web Interface.
I removed the extension and reinstalled it, I tested it on real and virtual machines, I downloaded various drivers and updated the video card driver - but nothing helps.
Please help. Subscription to paid video generators is too expensive, and I still have to render half of the AMV clip...
I am attaching the log from the terminal:

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --skip-torch-cuda-test
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled
Loading weights [9aba26abdf] from C:\sd-webui-animatediff\webui\models\Stable-diffusion\deliberate_v2.safetensors
*** Error calling: C:\sd-webui-animatediff\webui\extensions\sd-webui-animatediff\scripts\animatediff.py/ui
Traceback (most recent call last):
File "C:\sd-webui-animatediff\webui\modules\scripts.py", line 402, in wrap_call
return func(*args, **kwargs)
File "C:\sd-webui-animatediff\webui\extensions\sd-webui-animatediff\scripts\animatediff.py", line 41, in ui
return (AnimateDiffUiGroup().render(is_img2img, model_dir),)
File "C:\sd-webui-animatediff\webui\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 110, in render
os.mkdir(model_dir)
FileNotFoundError: [WinError 3] Системе не удается найти указанный путь: 'C:\Users\GM\Desktop\sd-webui-animatediff\webui\extensions\sd-webui-animatediff\model'


*** Error calling: C:\sd-webui-animatediff\webui\extensions\sd-webui-animatediff\scripts\animatediff.py/ui
Traceback (most recent call last):
File "C:\sd-webui-animatediff\webui\modules\scripts.py", line 402, in wrap_call
return func(*args, **kwargs)
File "C:\sd-webui-animatediff\webui\extensions\sd-webui-animatediff\scripts\animatediff.py", line 41, in ui
return (AnimateDiffUiGroup().render(is_img2img, model_dir),)
File "C:\sd-webui-animatediff\webui\extensions\sd-webui-animatediff\scripts\animatediff_ui.py", line 110, in render
os.mkdir(model_dir)
FileNotFoundError: [WinError 3] Системе не удается найти указанный путь: 'C:\Users\GM\Desktop\sd-webui-animatediff\webui\extensions\sd-webui-animatediff\model'


Creating model from config: C:\sd-webui-animatediff\webui\configs\v1-inference.yaml
Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().
Startup time: 9.8s (prepare environment: 0.2s, import torch: 3.2s, import gradio: 2.0s, setup paths: 0.7s, initialize shared: 0.4s, other imports: 0.7s, setup codeformer: 0.1s, load scripts: 1.4s, create ui: 0.7s, gradio launch: 0.4s).
Applying attention optimization: InvokeAI... done.
loading stable diffusion model: RuntimeError
Traceback (most recent call last):
File "threading.py", line 973, in _bootstrap
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "C:\sd-webui-animatediff\webui\modules\initialize.py", line 147, in load_model
shared.sd_model # noqa: B018
File "C:\sd-webui-animatediff\webui\modules\shared_items.py", line 110, in sd_model
return modules.sd_models.model_data.get_sd_model()
File "C:\sd-webui-animatediff\webui\modules\sd_models.py", line 499, in get_sd_model
load_model()
File "C:\sd-webui-animatediff\webui\modules\sd_models.py", line 649, in load_model
sd_model.cond_stage_model_empty_prompt = get_empty_cond(sd_model)
File "C:\sd-webui-animatediff\webui\modules\sd_models.py", line 537, in get_empty_cond
return sd_model.cond_stage_model([""])
File "C:\sd-webui-animatediff\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\sd-webui-animatediff\webui\modules\sd_hijack_clip.py", line 234, in forward
z = self.process_tokens(tokens, multipliers)
File "C:\sd-webui-animatediff\webui\modules\sd_hijack_clip.py", line 273, in process_tokens
z = self.encode_with_transformers(tokens)
File "C:\sd-webui-animatediff\webui\modules\sd_hijack_clip.py", line 326, in encode_with_transformers
outputs = self.wrapped.transformer(input_ids=tokens, output_hidden_states=-opts.CLIP_stop_at_last_layers)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\transformers\models\clip\modeling_clip.py", line 822, in forward
return self.text_model(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\transformers\models\clip\modeling_clip.py", line 740, in forward
encoder_outputs = self.encoder(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\transformers\models\clip\modeling_clip.py", line 654, in forward
layer_outputs = encoder_layer(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\transformers\models\clip\modeling_clip.py", line 382, in forward
hidden_states = self.layer_norm1(hidden_states)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\sd-webui-animatediff\webui\extensions-builtin\Lora\networks.py", line 474, in network_LayerNorm_forward
return originals.LayerNorm_forward(self, input)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\torch\nn\modules\normalization.py", line 190, in forward return F.layer_norm(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\torch\nn\functional.py", line 2515, in layer_norm
return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

Stable diffusion model failed to load
Exception in thread Thread-17 (load_model):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "C:\sd-webui-animatediff\webui\modules\initialize.py", line 153, in load_model
devices.first_time_calculation()
File "C:\sd-webui-animatediff\webui\modules\devices.py", line 148, in first_time_calculation
linear(x)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in call_impl
return forward_call(*args, **kwargs)
File "C:\sd-webui-animatediff\webui\extensions-builtin\Lora\networks.py", line 429, in network_Linear_forward
return originals.Linear_forward(self, input)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: "addmm_impl_cpu
" not implemented for 'Half'
Traceback (most recent call last):
File "C:\sd-webui-animatediff\system\python\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "C:\sd-webui-animatediff\system\python\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "C:\sd-webui-animatediff\webui\modules\ui_extra_networks.py", line 392, in pages_html
return refresh()
File "C:\sd-webui-animatediff\webui\modules\ui_extra_networks.py", line 398, in refresh
pg.refresh()
File "C:\sd-webui-animatediff\webui\modules\ui_extra_networks_textual_inversion.py", line 13, in refresh
sd_hijack.model_hijack.embedding_db.load_textual_inversion_embeddings(force_reload=True)
File "C:\sd-webui-animatediff\webui\modules\textual_inversion\textual_inversion.py", line 255, in load_textual_inversion_embeddings
self.expected_shape = self.get_expected_shape()
File "C:\sd-webui-animatediff\webui\modules\textual_inversion\textual_inversion.py", line 154, in get_expected_shape
vec = shared.sd_model.cond_stage_model.encode_embedding_init_text(",", 1)
AttributeError: 'NoneType' object has no attribute 'cond_stage_model'
Traceback (most recent call last):
File "C:\sd-webui-animatediff\system\python\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\sd-webui-animatediff\system\python\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "C:\sd-webui-animatediff\system\python\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "C:\sd-webui-animatediff\system\python\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "C:\sd-webui-animatediff\webui\modules\ui_extra_networks.py", line 392, in pages_html
return refresh()
File "C:\sd-webui-animatediff\webui\modules\ui_extra_networks.py", line 398, in refresh
pg.refresh()
File "C:\sd-webui-animatediff\webui\modules\ui_extra_networks_textual_inversion.py", line 13, in refresh
sd_hijack.model_hijack.embedding_db.load_textual_inversion_embeddings(force_reload=True)
File "C:\sd-webui-animatediff\webui\modules\textual_inversion\textual_inversion.py", line 255, in load_textual_inversion_embeddings
self.expected_shape = self.get_expected_shape()
File "C:\sd-webui-animatediff\webui\modules\textual_inversion\textual_inversion.py", line 154, in get_expected_shape
vec = shared.sd_model.cond_stage_model.encode_embedding_init_text(",", 1)
AttributeError: 'NoneType' object has no attribute 'cond_stage_model'

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

1 participant