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

Trainer can now always save dataparser transform #2653

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

pwais
Copy link
Contributor

@pwais pwais commented Dec 8, 2023

The base_dataparser now has a base save_dataparser_transform() method

def save_dataparser_transform(self, path: Path):

I think this might have just been a clean-up item that either didn't get addressed in the earlier PR https://github.com/nerfstudio-project/nerfstudio/pull/1008/files#r1207121018

or likely something else got refactored and this got missed. The current guard is too restrictive now. If we want to maintain a guard, probably better to do ahasattr on self.pipeline.datamanager.train_dataparser_outputs for duck-typing. If for some reason users are not supposed to subclass from the base data parser? idk.

Not sure if there are unit tests that can look for this file?

Copy link
Collaborator

@brentyi brentyi left a comment

Choose a reason for hiding this comment

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

This fix looks correct to me, thanks!!

@brentyi brentyi enabled auto-merge (squash) December 11, 2023 13:41
@brentyi brentyi merged commit 390b633 into nerfstudio-project:main Dec 11, 2023
4 checks 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.

None yet

2 participants