Skip to content

fix: SceneViz.add_rgbd does not convert image paths to arrays - #101

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/viz-sceneviz-add-rgbd-does-not-convert
Open

fix: SceneViz.add_rgbd does not convert image paths to arrays#101
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/viz-sceneviz-add-rgbd-does-not-convert

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Problem

fix: SceneViz.add_rgbd does not convert image paths to arrays

Fix

Replace:

    def add_rgbd(self, image, depth, intrinsics=None, cam2world=None, zfar=np.inf, mask=None):
        # make up some intrinsics
        if intrinsics is None:
            H, W, THREE = image.shape

with:

    def add_rgbd(self, image, depth, intrinsics=None, cam2world=None, zfar=np.inf, mask=None):
        image = img_to_arr(image)
        # make up some intrinsics
        if intrinsics is None:
            H, W, THREE = image.shape

Files changed

  • dust3r/viz.py

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

Successfully merging this pull request may close these issues.

1 participant