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

load nerfstudio model error #12

Open
ja-yeon-kim opened this issue Apr 24, 2024 · 4 comments
Open

load nerfstudio model error #12

ja-yeon-kim opened this issue Apr 24, 2024 · 4 comments

Comments

@ja-yeon-kim
Copy link

ja-yeon-kim commented Apr 24, 2024

Hello, I have an error like,

Loading latest Nerfstudio checkpoint from load_dir...
Traceback (most recent call last):
File "/home/anaconda3/envs/gs2gs/bin/ns-train", line 8, in
sys.exit(entrypoint())
File "/home/anaconda3/envs/gs2gs/lib/python3.9/site-packages/nerfstudio/scripts/train.py", line 262, in entrypoint
main(
File "/home/anaconda3/envs/gs2gs/lib/python3.9/site-packages/nerfstudio/scripts/train.py", line 247, in main
launch(
File "/home/anaconda3/envs/gs2gs/lib/python3.9/site-packages/nerfstudio/scripts/train.py", line 189, in launch
main_func(local_rank=0, world_size=world_size, config=config)
File "/home/anaconda3/envs/gs2gs/lib/python3.9/site-packages/nerfstudio/scripts/train.py", line 99, in train_loop
trainer.setup()
File "/home/anaconda3/envs/gs2gs/lib/python3.9/site-packages/nerfstudio/engine/trainer.py", line 190, in setup
self._load_checkpoint()
File "/home/anaconda3/envs/gs2gs/lib/python3.9/site-packages/nerfstudio/engine/trainer.py", line 405, in _load_checkpoint
self.optimizers.load_optimizers(loaded_state["optimizers"])
File "/home/anaconda3/envs/gs2gs/lib/python3.9/site-packages/nerfstudio/engine/optimizers.py", line 201, in load_optimizers
self.optimizers[k].load_state_dict(v)
KeyError: 'xyz'

I installed gsplat: 0.1.10, igs2gs: 0.1.0.
Thank you for helping with this issue.

@cvachha
Copy link
Owner

cvachha commented Apr 25, 2024

Hello, which version of Nerfstudio are you using? I recommend using the latest one from the nerfstudio main branch since there were some recent changes to splatfacto. Let me know if the error still appears.

@ja-yeon-kim
Copy link
Author

Hello, Thank you for your reply.
Nerfstudio version is 1.0.3.
I updated the version.
I keep experiencing the same error.

@cvachha
Copy link
Owner

cvachha commented Apr 30, 2024

I'm having trouble reproducing that error. On my system, it is working with the latest main branch of instruct-gs2gs and nerfstudio. Did you install nerfstudio from pip or from source from the main git branch?

@massyzs
Copy link

massyzs commented Nov 5, 2024

Also face this error.

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

No branches or pull requests

3 participants