lllyasviel / Omost

Your image is almost there!
Apache License 2.0
7.26k stars 419 forks source link

I get a 'specific module could not be found' error? Help? #113

Open KarmaMole opened 2 months ago

KarmaMole commented 2 months ago

Traceback (most recent call last): File "C:\Stable Diffusion Engines\Omost\gradio_app.py", line 6, in import lib_omost.memory_management as memory_management File "C:\Stable Diffusion Engines\Omost\lib_omost\memory_management.py", line 1, in import torch File "C:\Users\Omar.conda\envs\omost\lib\site-packages\torch__init__.py", line 148, in raise err OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\Omar.conda\envs\omost\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.

DenOfEquity commented 2 months ago

I had the same issue - due to missing a dependency for fbgemm.dll. Solution I used was to install updated MS VC++ redistributable. Go to https://visualstudio.microsoft.com/visual-cpp-build-tools/, then Download Build Tools. Run it, go to Individual components tab, find MSVC v143 -VS 2022 C++ x64/x86 Build tools (latest) and install. More discussion and alternative options: https://github.com/pytorch/pytorch/issues/131662