city-super / Scaffold-GS

[CVPR 2024 Highlight] Scaffold-GS: Structured 3D Gaussians for View-Adaptive Rendering

Home Page:https://city-super.github.io/scaffold-gs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong in saving for checkpoint

Kidleyh opened this issue · comments

self._local is not be used and need to save

Traceback (most recent call last):                                                                                                                                                                                                   
  File "/irip/liyihui_2022/job/Scaffold-GS/train.py", line 527, in <module>                                                                                                                                                          
    training(lp.extract(args), op.extract(args), pp.extract(args), dataset,  args.test_iterations, args.save_iterations, args.checkpoint_iterations, args.start_checkpoint, args.debug_from, wandb, logger)                          
  File "/irip/liyihui_2022/job/Scaffold-GS/train.py", line 187, in training                                                                                                                                                          
    torch.save((gaussians.capture(), iteration), scene.model_path + "/chkpnt" + str(iteration) + ".pth")                                                                                                                             
  File "/irip/liyihui_2022/job/Scaffold-GS/scene/gaussian_model.py", line 158, in capture                                                                                                                                            
    self._local,                                                                                                                                                                                                                      
AttributeError: 'GaussianModel' object has no attribute '_local'  

And I also found that self.demon is not be used and need to save

Traceback (most recent call last):                                                                                                                                                                                                   
  File "/irip/liyihui_2022/job/Scaffold-GS/train.py", line 527, in <module>                                                                                                                                                          
    training(lp.extract(args), op.extract(args), pp.extract(args), dataset,  args.test_iterations, args.save_iterations, args.checkpoint_iterations, args.start_checkpoint, args.debug_from, wandb, logger)                          
  File "/irip/liyihui_2022/job/Scaffold-GS/train.py", line 187, in training                                                                                                                                                          
    torch.save((gaussians.capture(), iteration), scene.model_path + "/chkpnt" + str(iteration) + ".pth")                                                                                                                             
  File "/irip/liyihui_2022/job/Scaffold-GS/scene/gaussian_model.py", line 158, in capture                                                                                                                                            
    self.denom,                                                                                                                                                                                                                      
AttributeError: 'GaussianModel' object has no attribute 'denom'                                             

Same Question. the variable self._local has not been defined in this code.

+1