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

What is --ckpt_prefix? #31

Closed
chl2 opened this issue Aug 9, 2022 · 4 comments
Closed

What is --ckpt_prefix? #31

chl2 opened this issue Aug 9, 2022 · 4 comments

Comments

@chl2
Copy link

chl2 commented Aug 9, 2022

Thanks for the code, I have some problems when reproducing

  1. What is --ckpt_prefix ${EXP_PREFIX} in the Merge step?
  2. In the Evaluation step, what is the --exp_name $EXP_NAME? Is it the sub-model related files generated when training each submodule? Can we directly use the output model you provided for direct evaluation?
    Thank you very much for any reply.
@sumanttyagi
Copy link

  1. Yes this is the submodule , mega-nerf have feature sub module i guess you should use merge to get all the view points

@hturki
Copy link
Collaborator

hturki commented Aug 12, 2022

  1. assuming your individual submodules were trained with a checkpoint directory such as "/foo/submodule-0", /foo/submodule-1", etc, you'd pass in "/foo/submodule-" as the prefix and the merging script will iterate through all of the trained submodule directories.

https://github.com/cmusatyalab/mega-nerf/blob/main/scripts/merge_submodules.py#L34

@hturki hturki closed this as completed Aug 16, 2022
@Kikihqq
Copy link

Kikihqq commented Apr 10, 2023

  1. assuming your individual submodules were trained with a checkpoint directory such as "/foo/submodule-0", /foo/submodule-1", etc, you'd pass in "/foo/submodule-" as the prefix and the merging script will iterate through all of the trained submodule directories.

https://github.com/cmusatyalab/mega-nerf/blob/main/scripts/merge_submodules.py#L34
I find it has some errors in this step:

My input checkpoint directory is "--ckpt_prefix logs/exp/ex-", but the root seems error:

Traceback (most recent call last):
  File "/home/paper/Desktop/meganerf/scripts/merge_submodules.py", line 113, in <module>
    main(_get_merge_opts())
  File "/home/paper/anaconda3/envs/mega-nerf/lib/python3.9/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
    return func(*args, **kwargs)
  File "/home/paper/Desktop/meganerf/scripts/merge_submodules.py", line 51, in main
    version_dirs = sorted([int(x.name) for x in list(centroid_path.iterdir())], reverse=True)
  File "/home/paper/Desktop/meganerf/scripts/merge_submodules.py", line 51, in <listcomp>
    version_dirs = sorted([int(x.name) for x in list(centroid_path.iterdir())], reverse=True)
ValueError: invalid literal for int() with base 10: 'hparams.txt'

what the meaning of version_dirs ?

image

Could you please help me solve this problem? Thanks a lot.

@SSXXSSXX
Copy link

y input checkpoint directory is "--ckpt_prefix logs/exp/ex-", but the root seems error
"I've encountered the same issue. Have you managed to solve it?"

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

5 participants