Skip to content

Killed when the data maybe too big #134

Closed

Description

@KnightSnape

I don't know if I've tested it, I used a large-scale data (colmap), put it into OpenSplat, nerfstudio's nerfacto and 3d_gaussian_splatting respectively, and only OpenSplat was killed when importing, nerfstudio trained normally, which factor formed such a difference? Will a fix be attempted in the future?

Activity

  1. pierotofy commented on Sep 27, 2024

    @pierotofy
    Member

    We'd welcome a pull request that fixes/optimizes any memory issue that might be present in OpenSplat. 🙏

  2. mureva commented on Oct 4, 2024

    @mureva

    I don't know if relates to your problem, but I was trying to use a lidar point cloud as the initial point cloud for splatting, and would get a runtime errror. A bit of sleuthing suggested that the issue was nanoflann, an it appeared to be getting to the recursion limit of the system. An older version of nanoflann (1.3.0) was able to deal with my point cloud without problem - but meant a small amount of modification to opensplat to use.

  3. liamyehudai commented on Oct 8, 2024

    @liamyehudai

    We are also having this issue

  4. psykon commented on Oct 19, 2024

    @psykon

    Same issue here. I have a colmap dataset with 3564 images. OpenSplat seems to attempt to load all images into memory at once. After committing ~160Gb to memory, the process shuts down with a cv::OutOfMemoryError message.
    This happens with the prebuilt windows binary.

    Switching to CPU instead of cuda does not make any difference, neither does setting a downscale factor make a difference in this behavior.

    Is this a expected limitation of OpenSplat or a unexpected error?

  5. pierotofy commented on Oct 19, 2024

    @pierotofy
    Member

    You need more RAM, currently. We'd welcome a PR that improves memory management.

  6. SubodhMishraIdeaForgeTech commented on Jan 29, 2025

    @SubodhMishraIdeaForgeTech

    I downsampled the images and now it's running. Is this a possible way to address the problem?

  7. pierotofy commented on Jan 29, 2025

    @pierotofy
    Member

    A way to improve this would be to lazy-load images and offload them as needed (via a LRU cache structure) in between training iterations, which would slow down training but reduce RAM usage. We'd welcome improvements in this area.

  8. luisseyfer commented on Jan 31, 2025

    @luisseyfer

    @SubodhMishraIdeaForgeTech

    I downsampled the images and now it's running. Is this a possible way to address the problem?

    Could you provide some information?
    What is your hardware? What was the data size first? How much did you downsample?
    With some examples one could maybe estimate...

  9. CarCrasher13 commented on May 17, 2026

    @CarCrasher13

    this is needed.

  10. pierotofy commented on Sep 16, 2026

    @pierotofy
    Member

    #250 should allow processing of much larger datasets by using a compressed memory cache. 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions