Comments (10)
For automatic1111 WebUI I had to change the versions in requirement file and requirement versions to the one mentioned above
from stable-diffusion-webui-depthmap-script.
install rembg --ignore-installed llvmlite
launch.run_pip("install --force-reinstall timm==0.6.12", "timm requirement for depthmap script")
launch.run_pip("install numba==0.56.2", "numba requirement for depthmap script")
from stable-diffusion-webui-depthmap-script.
I was getting this error as well, and running what @aluuuanefields suggested got it working.
Specifically (using the venv) ran this:
pip install --force-reinstall timm==0.6.12
pip install numba==0.56.2
Both are required, as the first didn't work as well.
from stable-diffusion-webui-depthmap-script.
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 ..
from stable-diffusion-webui-depthmap-script.
Could you try adding this to install.py at the end, without the if not launch.is_installed("timm"):
check :
launch.run_pip("install --force-reinstall timm==0.6.12", "timm requirement for depthmap script")
from stable-diffusion-webui-depthmap-script.
The timm installation was successful, but I got another problem:
/usr/local/lib/python3.8/dist-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.24.1
warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
No module 'xformers'. Proceeding without it.
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 14, in <module>
from numba import njit, prange
File "/usr/local/lib/python3.8/dist-packages/numba/__init__.py", line 42, in <module>
from numba.np.ufunc import (vectorize, guvectorize, threading_layer,
File "/usr/local/lib/python3.8/dist-packages/numba/np/ufunc/__init__.py", line 3, in <module>
from numba.np.ufunc.decorators import Vectorize, GUVectorize, vectorize, guvectorize
File "/usr/local/lib/python3.8/dist-packages/numba/np/ufunc/decorators.py", line 3, in <module>
from numba.np.ufunc import _internal
SystemError: initialization of _internal failed without raising an exception
from stable-diffusion-webui-depthmap-script.
After I put these two lines at the end of install.py:
launch.run_pip("install --force-reinstall timm==0.6.12", "timm requirement for depthmap script")
launch.run_pip("install scipy", "scipy requirement for depthmap script")
I got this error:
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 14, in <module>
from numba import njit, prange
File "/usr/local/lib/python3.8/dist-packages/numba/__init__.py", line 42, in <module>
from numba.np.ufunc import (vectorize, guvectorize, threading_layer,
File "/usr/local/lib/python3.8/dist-packages/numba/np/ufunc/__init__.py", line 3, in <module>
from numba.np.ufunc.decorators import Vectorize, GUVectorize, vectorize, guvectorize
File "/usr/local/lib/python3.8/dist-packages/numba/np/ufunc/decorators.py", line 3, in <module>
from numba.np.ufunc import _internal
SystemError: initialization of _internal failed without raising an exception
from stable-diffusion-webui-depthmap-script.
I'm out of colab for today, but I'll check this one out next time.
from stable-diffusion-webui-depthmap-script.
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
Traceback (most recent call last):
File "C:\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\stable-diffusion-webui\extensions\stable-diffusion-webui-depthmap-script\scripts\depthmap.py", line 40, in
from midas.dpt_depth import DPTDepthModel
File "C:\stable-diffusion-webui\extensions/stable-diffusion-webui-depthmap-script/scripts\midas\dpt_depth.py", line 5, in
from .blocks import (
File "C:\stable-diffusion-webui\extensions/stable-diffusion-webui-depthmap-script/scripts\midas\blocks.py", line 4, in
from .backbones.beit import (
File "C:\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'
from stable-diffusion-webui-depthmap-script.
Both are required, as the first didn't work as well.
This unfortunately didn't help Colab, it crashed WebUI with torch errors.
from stable-diffusion-webui-depthmap-script.
Related Issues (20)
- Depth anything: Error verifying pickled file from ...\dinov2_vitl14_pretrain.pth HOT 2
- *** Error loading script: depthmap.py ImportError: fontconfig not found HOT 2
- ERROR: Error(s) in loading state_dict for DPTDepthModel (Midas 3.1) HOT 3
- python crach on video generation step HOT 2
- Output PNGs? HOT 2
- Please add a functionality like https://github.com/Extraltodeus/depthmap2mask
- Problem of scale with my outputs
- How does "match net size to input size" work? HOT 1
- Error loading the depth map script HOT 2
- onnxruntime bug - TensorRT does not natively support INT64 HOT 1
- doesnt work with defuse backend
- Batch process stuck at generating background masks
- Zoe Depth taking forever HOT 1
- Cannot download `edge_model.pth` for inpainted mesh HOT 1
- AttributeError: 'Processed' object has no attribute 'scheduler' / No longer working again in A1111 V1.9.3 HOT 2
- Tiling setting HOT 6
- Attribute error
- [Feature Request] Another promising depth algorithm (Geowizard)
- How do I add new models? HOT 3
- Generate stereoscopic (3D) image(s) An error occurs during use. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-webui-depthmap-script.