Skip to content

opencv viewer not able to run when using nerfstudio #3662

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

Open
david2611 opened this issue May 29, 2025 · 0 comments
Open

opencv viewer not able to run when using nerfstudio #3662

david2611 opened this issue May 29, 2025 · 0 comments

Comments

@david2611
Copy link

Describe the bug
I have found that when I have loaded nerfstudio libraries that it breaks functionality of opencv to view images. If I include the following import (from nerfstudio.utils.eval_utils import eval_setup), any time I try to run an opencv viewer, the code just hangs without showing anything and doesn't progress at all within the script. Note, this occurs even if the image being viewed is not from a nerfstudio model render.

To Reproduce
I am using a fresh install of nerfstudio following the install instructions in a new conda environment with cuda 11.8 and python 3.10.

Minimal code example below causes the code to hang and not show the image.

import numpy as np
from nerfstudio.utils.eval_utils import eval_setup
import cv2

img = np.random.randint(0,256, (100,100,3), dtype=np.uint8)
cv2.imshow('frame', img)
cv2.waitKey(0)

If I then comment out the nerfstudio import line, the viewer shows normally with no issues. Likewise if you exchange cv2.imshow for cv2.imwrite there is no issue.

Any and all assistance would be greatly appreciated.

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

1 participant