yihua7 / SC-GS

[CVPR 2024] Code for SC-GS: Sparse-Controlled Gaussian Splatting for Editable Dynamic Scenes
https://yihua7.github.io/SC-GS-web/
MIT License
426 stars 21 forks source link

Rendering Video without editing #31

Open brianneoberson opened 2 months ago

brianneoberson commented 2 months ago

Hello,

I am trying to render a spiral video after training and before doing any editing to the model. I am using the render_traj button, but I get the following error: File "{path/to}/SC-GS/train_gui.py", line 1884, in <module> gui.render() File "{path/to}/SC-GS/train_gui.py", line 990, in render self.render_customized_trajectory(use_spiral=self.should_render_customized_trajectory_spiral) File "{path/to}/SC-GS/train_gui.py", line 1665, in render_customized_trajectory deform_keypoints, self.animation_time = load_obj(os.path.join(self.args.model_path, deform_keypoint_files[1])) IndexError: list index out of range

It seems like it is looking for deformation keypoints and there are none, but I don't want to deform the model. Any tips on how I can avoid this error?

Best regards, Brianne

yihua7 commented 2 months ago

Hi,

Indeed, the code here: https://github.com/yihua7/SC-GS/blob/26cd57d09598b2f5d951029808a5ac9f0ff4f626/train_gui.py#L1663 is that the program checks for the presence of saved handle points before deciding to render the deformation or not. If your intention is to prevent the animation from rendering, you can simply delete the file where these handle points are saved. Since you mentioned that the keypoints saved are None, deleting this file should not result in any loss of important data.