Skip to content

fix: print called with invalid 'force' keyword argument - #112

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/losses-print-called-with-invalid-force
Open

fix: print called with invalid 'force' keyword argument#112
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/losses-print-called-with-invalid-force

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Problem

fix: print called with invalid 'force' keyword argument

Fix

Replace:

        if loss1.numel() == 0:
            print('NO VALID POINTS in img1', force=True)
        if loss2.numel() == 0:
            print('NO VALID POINTS in img2', force=True)

with:

        if loss1.numel() == 0:
            print('NO VALID POINTS in img1', flush=True)
        if loss2.numel() == 0:
            print('NO VALID POINTS in img2', flush=True)

Files changed

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