Scaffold-GS icon indicating copy to clipboard operation
Scaffold-GS copied to clipboard

Wrong in saving for checkpoint

Open Kidleyh opened this issue 10 months ago • 2 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'                                             

Kidleyh avatar Apr 02 '24 07:04 Kidleyh

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

Miaosheng1 avatar May 07 '24 09:05 Miaosheng1

+1

EarltShirt avatar Jul 25 '24 08:07 EarltShirt

These two parameters are not used in training or rendering, you can remove them.

tongji-rkr avatar Aug 21 '24 06:08 tongji-rkr