Skip to content

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

Merged
jb-ye merged 1 commit into
nerfstudio-project:mainfrom
Crescent-Saturn:fix/saving_ckpt_deleting_error
Nov 8, 2024
Merged

fix: saving ckpt error when ckpt folder has some folder inside#3516
jb-ye merged 1 commit into
nerfstudio-project:mainfrom
Crescent-Saturn:fix/saving_ckpt_deleting_error

Conversation

@Crescent-Saturn

Copy link
Copy Markdown
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

@jb-ye jb-ye left a comment

Copy link
Copy Markdown
Collaborator

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
@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