Skip to content

avoid a division by zero#19

Merged
liruilong940607 merged 1 commit intonerfstudio-project:mainfrom
RongLiu-Leo:main
May 2, 2025
Merged

avoid a division by zero#19
liruilong940607 merged 1 commit intonerfstudio-project:mainfrom
RongLiu-Leo:main

Conversation

@RongLiu-Leo
Copy link
Contributor

As discussed by #4 and #6,

/ (time.time() - tic)

leads to zero division.

The latest upgrade reverts this change. Please consider bringing it back.

@brentyi
Copy link
Collaborator

brentyi commented May 2, 2025

We could also consider using time.perf_counter() instead of time.time()

Copy link
Collaborator

@liruilong940607 liruilong940607 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense. I'll approve and merge

@liruilong940607 liruilong940607 merged commit beec912 into nerfstudio-project:main May 2, 2025
1 check passed
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.

3 participants