Skip to content

fix: invalid split leaves selection variable undefined - #117

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/blendedmvs-invalid-split-leaves-selection
Open

fix: invalid split leaves selection variable undefined#117
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/blendedmvs-invalid-split-leaves-selection

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Problem

fix: invalid split leaves selection variable undefined

Fix

Replace:

        if split is None:
            selection = slice(None)
        if split == 'train':
            # select 90% of all scenes
            selection = (pairs['seq_low'] % 10) > 0
        if split == 'val':
            # select 10% of all scenes
            selection = (pairs['seq_low'] % 10) == 0

with:

        if split is None:
            selection = slice(None)
        elif split == 'train':
            # select 90% of all scenes
            selection = (pairs['seq_low'] % 10) > 0
        elif split == 'val':
            # select 10% of all scenes
            selection = (pairs['seq_low'] % 10) == 0
        else:
            raise ValueError(f'bad {split=}')

Files changed

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