jimmyYliu / Animatable-3D-Gaussian

105 stars 3 forks source link

questions abount data #1

Closed yejr0229 closed 6 months ago

yejr0229 commented 6 months ago

Hi,I found the PeopleSnapshot dataset is different from the original one,in poses folder youi have anim_nerf_val.npz\anim_nerf_train.npz\anim_nerf_test.npz,are this the smpl paramaters?How did you get these?

jimmyYliu commented 6 months ago

InstantAvatar did some preprocessing on PeopleSnapshot. We used their preprocessed data directly, but we only used camera parameters and poses.

yejr0229 commented 6 months ago

Thanks for replying.Now I encounter another problem. I use this command "python train.py --config-name peoplesnapshot.yaml dataset=peoplesnapshot/male-3-casual" to train successfully,but can't use this command to test "python test.py --config-name peoplesnapshot.yaml dataset=peoplesnapshot/male-3-casual",here is the detailed error: CUDA_VISIBLE_DEVICES=1 python test.py --config-name peoplesnapshot.yaml dataset=peoplesnapshot/male-3-casual Seed set to 0 Error executing job with overrides: ['dataset=peoplesnapshot/male-3-casual'] Traceback (most recent call last): File "test.py", line 18, in main() File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/hydra/main.py", line 94, in decorated_main _run_hydra( File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/hydra/_internal/utils.py", line 394, in _run_hydra _run_app( File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/hydra/_internal/utils.py", line 457, in _run_app run_and_report( File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/hydra/_internal/utils.py", line 223, in run_and_report raise ex File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/hydra/_internal/utils.py", line 220, in run_and_report return func() File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/hydra/_internal/utils.py", line 458, in lambda: hydra.run( File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/hydra/internal/hydra.py", line 132, in run = ret.return_value File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/hydra/core/utils.py", line 260, in return_value raise self._return_value File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/hydra/core/utils.py", line 186, in run_job ret.return_value = task_function(task_cfg) File "test.py", line 10, in main model = NeRFModel.load_from_checkpoint('model.ckpt') File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/pytorch_lightning/core/module.py", line 1552, in load_from_checkpoint loaded = _load_from_checkpoint( File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/pytorch_lightning/core/saving.py", line 89, in _load_from_checkpoint model = _load_state(cls, checkpoint, strict=strict, kwargs) File "/media/data4/yejr/conda_env/anim-gaussian/lib/python3.8/site-packages/pytorch_lightning/core/saving.py", line 156, in _load_state obj = cls(_cls_kwargs) TypeError: init() missing 1 required positional argument: 'opt' Can you tell me how to deal with it?

yejr0229 commented 6 months ago

Why the yaml file can't be read in test.py?I use the same arguments.

jimmyYliu commented 6 months ago

Can you check if your git repository is updated to the latest version? I did not find this problem in the latest version. We add self.save_hyperparameters() to the init() of NeRFModel in the latest version.