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

When using the Multi-dimensional Balanced MSE, there is a memory error #22

Open
bowen480 opened this issue Mar 1, 2024 · 4 comments
Open

Comments

@bowen480
Copy link

bowen480 commented Mar 1, 2024

When using the Multi-dimensional Balanced MSE for pixel-wise loss,there is an error:not enough memory: you tried to allocate 9663676416 bytes. Buy new RAM!

@jiawei-ren
Copy link
Owner

What is your feature dimension? The loss requires $d^2$ memory for $d$-dimensional features, so high dimensional feature may lead to OOM.

@bowen480
Copy link
Author

bowen480 commented Mar 3, 2024

oh,thank you. I used a dense layer to reduce dimensions to solve the memory issue. However, I encountered a new problem: an error occurred in the line of code that calls torch's MVN, reporting a RuntimeError: CUDA error: no kernel image is available for execution on the device. I look forward to your reply.

@jiawei-ren
Copy link
Owner

Hi, I am not sure how to solve this issue, you may look for solutions in pytorch forums.

@bowen480
Copy link
Author

bowen480 commented Mar 9, 2024

I had solved this problem by reducing dimensions.Thank 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