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

Failed to save 30000 Gaussians point_cloud.ply #56

Open
xuncpp opened this issue Nov 14, 2024 · 2 comments
Open

Failed to save 30000 Gaussians point_cloud.ply #56

xuncpp opened this issue Nov 14, 2024 · 2 comments

Comments

@xuncpp
Copy link

xuncpp commented Nov 14, 2024

Thank you for your excellent work. I followed your detailed instructions and tried it.
But it failed at the step of train coarse global gaussian model.The dataset I used is residence.
The reason for the failure is that the point cloud results of 30,000 times cannot be saved.
The specific error information is as follows:

[ITER 30000] Evaluating train: L1 0.05433260723948479 PSNR 22.245019912719727 [11/11 19:52:55]

[ITER 30000] Saving Gaussians [11/11 19:52:56]
Traceback (most recent call last):
  File "D:\project\CityGaussian\train_large.py", line 311, in <module>
    training(lp, op, pp, args.test_iterations, args.save_iterations, args.refilter_iterations, args.checkpoint_iterations, args.start_checkpoint, args.max_cache_num, args.debug_from)
  File "D:\project\CityGaussian\train_large.py", line 146, in training
    scene.save(iteration, dataset)
  File "D:\project\CityGaussian\scene\__init__.py", line 248, in save
    self.gaussians.save_ply(os.path.join(point_cloud_path, "point_cloud.ply"))
  File "D:\project\CityGaussian\scene\gaussian_model.py", line 219, in save_ply
    elements[:] = list(map(tuple, attributes))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MemoryError

The error message points to the function save_ply,The error statement is "elements[:] = list(map(tuple, attributes))"
I tried different max_cache_num(256 and 32) as suggested, but all failed. Also, 7000 saved successfully.
I hope you can answer my question, thank you!

@xuncpp
Copy link
Author

xuncpp commented Nov 14, 2024

The additional operating device information is as follows: the graphics card is 4090 24GB, the computer memory is 32GB.

@DekuLiuTesla
Copy link
Owner

Hi, @xuncpp, perhaps this related issue could help you.

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

2 participants