-
Notifications
You must be signed in to change notification settings - Fork 153
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
timm.models.beit error on colab #74
Comments
Could you try adding this to install.py at the end, without the
|
The timm installation was successful, but I got another problem:
|
After I put these two lines at the end of install.py:
I got this error:
|
For automatic1111 WebUI I had to change the versions in requirement file and requirement versions to the one mentioned above |
I'm out of colab for today, but I'll check this one out next time. |
seems like a package version incompatibility with numba .. You can remove the numba imports, remove the lines that start with @njit and replace the prange with range, only the stereo image generation will be much much slower .. I will have to investigate further .. |
install rembg --ignore-installed llvmlite |
I was getting this error as well, and running what @aluuuanefields suggested got it working. Specifically (using the venv) ran this:
Both are required, as the first didn't work as well. |
For the first time ever I got the error below at startup in SD Web UI by AUTOMATIC1111. The current versions of the above mentioned two libraries installed in SDWUI (Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8) are respectively timm-0.4.12 and numba-0.56.4, Error loading script: depthmap.py |
|
I installed the script on colab, but on reboot I got this error on version 0.3.4:
Error loading script: depthmap.py
Traceback (most recent call last):
File "/content/stable-diffusion-webui/modules/scripts.py", line 195, in load_scripts
module = script_loading.load_module(scriptfile.path)
File "/content/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
exec(compiled, module.dict)
File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/depthmap.py", line 40, in
from midas.dpt_depth import DPTDepthModel
File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/midas/dpt_depth.py", line 5, in
from .blocks import (
File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/midas/blocks.py", line 4, in
from .backbones.beit import (
File "/content/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/midas/backbones/beit.py", line 9, in
from timm.models.beit import gen_relative_position_index
ModuleNotFoundError: No module named 'timm.models.beit'
I put these two lines in install.py, but it didn't help:
if not launch.is_installed("timm"):
launch.run_pip("install timm", "timm requirement for depthmap script")
How can I use the script on colab?
The text was updated successfully, but these errors were encountered: