Skip to content

fix: len assertion chain allows imgs shorter than cams2world - #113

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/demo-len-assertion-chain-allows-imgs
Open

fix: len assertion chain allows imgs shorter than cams2world#113
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/demo-len-assertion-chain-allows-imgs

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Problem

fix: len assertion chain allows imgs shorter than cams2world

Fix

Replace:

    assert len(pts3d) == len(mask) <= len(imgs) <= len(cams2world) == len(focals)

with:

    assert len(pts3d) == len(mask) == len(imgs) == len(cams2world) == len(focals)

Files changed

  • dust3r/demo.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