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

why the memory usage will increase sharply in loading #364

Open
lucylucy27 opened this issue Nov 8, 2024 · 4 comments
Open

why the memory usage will increase sharply in loading #364

lucylucy27 opened this issue Nov 8, 2024 · 4 comments

Comments

@lucylucy27
Copy link

Hi mkkellogg,

I found on Iphone13 with 4G GPU memory,the demo fails to load (but it happens to be successful!).
If i change the ply model to smaller size, the demo works well.
My question is, why the memory usage will increase sharply in loading? It may be the block reason to open bigger size models.
I've also tried upgrading to v0.4.5, but there hasn't been much improvement compared with v0.4.2
Here is my config to open *.ply file in release v0.4.5:

'gpuAcceleratedSort': true,
'antialiased': false,
'sharedMemoryForWorkers':false,
'sceneRevealMode': GaussianSplats3D.SceneRevealMode.Instant,
'freeIntermediateSplatData': true,
'plyInMemoryCompressionLevel': 0,
'optimizeSplatData': false,
'sphericalHarmonicsDegree': 2
'progressiveLoad': false

Is there any thing I'm missing?

Thanks very much in advance~

@lucylucy27
Copy link
Author

And besides
'sphericalHarmonicsDegree': 0,
'splatAlphaRemovalThreshold': 30,
is there other config settings to decrease the peak value?

Thanks ~

@seppestaes
Copy link

Do you intend to use .ply files for production purposes? .ksplat is heavily optimized...

@Linkersem
Copy link

@mkkellogg Hello, I also encountered this problem.
First of all, in the demo web page, I opened a scene, everything was fine at the beginning, but suddenly the memory usage of the GPU suddenly rose rapidly, and then slowly returned to stable, this makes me very puzzled, why is there this phenomenon?

Second, I noticed that by adding the variable 'freeIntermediateSplatData', I traced down the code, but I also can't understand why this can optimize memory?

20241111_173022.00_01_13-.1.00_00_00-00_00_14.mp4

As you can see in this video, the memory footprint of the GPU process jumps from ~43W KB to ~77W KB.

Thanks for your reply

@lucylucy27
Copy link
Author

Do you intend to use .ply files for production purposes? .ksplat is heavily optimized.

I think .ksplat files have same issue.

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

3 participants