Open derodz opened 11 months ago
Are you able to use normal webui's functions like text2image?
If you're running on CPU, try selecting CPU for that selection above as well
Are you able to use normal webui's functions like text2image?
Yes, both txt2img and img2img work great
If you're running on CPU, try selecting CPU for that selection above as well
What commands do I run? I tried the following and I received the same error:
--use-cpu all --precision full --no-half --skip-torch-cuda-test
Oh, well then. I recall there are unconditional 'cuda' references in the code, so I'll need to look through them
Oh, well then. I recall there are unconditional 'cuda' references in the code, so I'll need to look through them
I tried to modify the following line:
File "/Users/user1/stable-diffusion-webui/extensions/sd-webui-text2video/scripts/samplers/uni_pc/sampler.py", line 17, in register_buffer attr = attr.to(torch.device("cuda"))
to
attr = attr.to(torch.device("mps"))
and
attr = attr.to(torch.device("cpu"))
and instead I get the following error
Traceback (most recent call last): File "/Users/user1/stable-diffusion-webui/extensions/sd-webui-text2video/scripts/t2v_helpers/render.py", line 30, in run vids_pack = process_modelscope(args_dict, args) File "/Users/user1/stable-diffusion-webui/extensions/sd-webui-text2video/scripts/modelscope/process_modelscope.py", line 220, in process_modelscope samples, _ = pipe.infer(args.prompt, args.n_prompt, args.steps, args.frames, args.seed + batch if args.seed != -1 else -1, args.cfg_scale, File "/Users/user1/stable-diffusion-webui/extensions/sd-webui-text2video/scripts/modelscope/t2v_pipeline.py", line 275, in infer self.sd_model.to(self.device) File "/Users/user1/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1145, in to return self._apply(convert) File "/Users/user1/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 844, in _apply self._buffers[key] = fn(buf) File "/Users/user1/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead. Exception occurred: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
Same error
Same error on M2
mps didn't work with float64 as described here https://github.com/DLR-RM/stable-baselines3/issues/914
Is there an existing issue for this?
Are you using the latest version of the extension?
What happened?
I completed a basic install of the web extension but cannot produce any video.
Steps to reproduce the problem
What should have happened?
The extension should work on Mac and produce videos.
WebUI and Deforum extension Commit IDs
webui commit id - 68f336b txt2vid commit id - 20ead10
Torch version
2.0.1
What GPU were you using for launching?
M1 Max (used --use-cpu command line argument)
On which platform are you launching the webui backend with the extension?
Local PC setup (Mac)
Settings
Console logs
Additional information
No response