Skip to content
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

getting some cv2 related error #116

Open
pavankay opened this issue Dec 23, 2023 · 1 comment
Open

getting some cv2 related error #116

pavankay opened this issue Dec 23, 2023 · 1 comment

Comments

@pavankay
Copy link

error:
(zero123) C:\transformers\stable-zero123\zero123-main\zero123>python gradio_new.py
Traceback (most recent call last):
File "C:\transformers\stable-zero123\zero123-main\zero123\gradio_new.py", line 24, in
from ldm.models.diffusion.ddim import DDIMSampler
File "C:\transformers\stable-zero123\zero123-main\zero123\ldm\models\diffusion\ddim.py", line 9, in
from ldm.modules.diffusionmodules.util import make_ddim_sampling_parameters, make_ddim_timesteps, noise_like, extract_into_tensor
File "C:\transformers\stable-zero123\zero123-main\zero123\ldm\modules\diffusionmodules\util.py", line 18, in
from ldm.util import instantiate_from_config
File "C:\transformers\stable-zero123\zero123-main\zero123\ldm\util.py", line 17, in
import cv2
File "C:\Users\user\anaconda3\envs\zero123\lib\site-packages\cv2_init_.py", line 190, in
bootstrap()
File "C:\Users\user\anaconda3\envs\zero123\lib\site-packages\cv2_init_.py", line 184, in bootstrap
if _load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\Users\user\anaconda3\envs\zero123\lib\site-packages\cv2_init
.py", line 37, in _load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Users\user\anaconda3\envs\zero123\lib\importlib_init
.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\user\anaconda3\envs\zero123\lib\site-packages\cv2\typing_init
.py", line 169, in
LayerId = cv2.dnn.DictValue
AttributeError: module 'cv2.dnn' has no attribute 'DictValue'

(zero123) C:\transformers\stable-zero123\zero123-main\zero123>

@zaiisao
Copy link

zaiisao commented Dec 31, 2023

This was mentioned in another thread and a solution was presented: #84 (comment)
The solution worked for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants