Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: saving ckpt error when ckpt folder has some folder inside #3516

Conversation

Crescent-Saturn
Copy link
Contributor

When save_only_latest_checkpoint is True, it tried to delete everything in the chekpoint folder before saving the latest checkpoint.

Since it is supposed that the nerfstudio_models only has checkpoint files inside, when there are some other customized saved folders inside, there will be an error.

This change will list *.ckpt files only instead of everything (include folder) to be compared with latest checkpoint file before deleting.

Thanks for your consideration

Copy link
Collaborator

@jb-ye jb-ye left a comment

Choose a reason for hiding this comment

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

Look good to me

@jb-ye jb-ye merged commit 9e5bbd9 into nerfstudio-project:main Nov 8, 2024
3 checks passed
@Crescent-Saturn Crescent-Saturn deleted the fix/saving_ckpt_deleting_error branch November 11, 2024 13:40
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.

2 participants