Closed luojunyuan closed 1 year ago
i'm dumb
@luojunyuan 这个问题解决了吗?我还准备今晚看一下,应该是某个宏在mac上不能编译
没有解决
@luojunyuan 请切换到 try-fix-minacalc 分支尝试一下能否编译:
git checkout try-fix-minacalc
无事编译!在ffmepg漫长的安装之后,可以用cpu运行了。2分钟长度的歌曲90秒以内就能完成charting。
来自cuda的警告,这应该属于另一个问题。
Traceback (most recent call last):
File "/Users/kimika/Downloads/Mug-Diffusion/webui.py", line 14, in <module>
torch.cuda.init()
File "/Users/kimika/Library/Python/3.9/lib/python/site-packages/torch/cuda/__init__.py", line 216, in init
_lazy_init()
File "/Users/kimika/Library/Python/3.9/lib/python/site-packages/torch/cuda/__init__.py", line 239, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
WARNING: CUDA GPU is not available. Fallback to CPU mode, which may be slow!
如果可以把后端 gpu 切换到 mps的话,应该可以解决这个速度更快更完美吧。我不知道源代码需要做哪些变动。
你的 torch 是 MPS 后端的吗?可以参考 https://pytorch.org/docs/stable/notes/mps.html 来看看怎么改,主要是修改 webui.py 里和 CUDA 相关的代码。
Sorry to bother you. If this is not mean to be solved. Feel free to close.