cvlab-columbia / zero123

Zero-1-to-3: Zero-shot One Image to 3D Object (ICCV 2023)
https://zero123.cs.columbia.edu/
MIT License
2.59k stars 188 forks source link

Demo version is not working properly #84

Open 23hyun opened 11 months ago

23hyun commented 11 months ago

Runtime error is occurring When will it be restored?

Runtime error

===== Application Startup at 2023-08-16 03:53:41 ===== Traceback (most recent call last): File "/home/user/app/app.py", line 25, in from ldm.models.diffusion.ddim import DDIMSampler File "/home/user/app/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 "/home/user/app/ldm/modules/diffusionmodules/util.py", line 18, in from ldm.util import instantiate_from_config File "/home/user/app/ldm/util.py", line 17, in import cv2 File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/init.py", line 190, in bootstrap() File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/init.py", line 184, in bootstrap if __load_extra_py_code_for_module("cv2", submodule, DEBUG): File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/init.py", line 37, in load_extra_py_code_for_module py_module = importlib.import_module(module_name) File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/typing/init__.py", line 169, in LayerId = cv2.dnn.DictValue AttributeError: module 'cv2.dnn' has no attribute 'DictValue'

yuedajiong commented 11 months ago

+1

sidsunny commented 11 months ago

@23hyun @yuedajiong I uninstalled opencv and installed it again using pip install opencv-python and it worked for me.

alparius commented 11 months ago

@23hyun @yuedajiong I uninstalled opencv and installed it again using pip install opencv-python and it worked for me.

I beleive they are talking about this demo: https://huggingface.co/spaces/cvlab/zero123-live

rheros commented 7 months ago

I get a way reinstall opency-python my old version is 4.5.5.64
reInstall is 4.8.1.78