You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
If I then comment out the nerfstudio import line, the viewer shows normally with no issues. Likewise if you exchange
cv2.imshow
forcv2.imwrite
there is no issue.Any and all assistance would be greatly appreciated.
The text was updated successfully, but these errors were encountered: