jiawei-ren / BalancedMSE

[CVPR 2022 Oral] Balanced MSE for Imbalanced Visual Regression https://arxiv.org/abs/2203.16427

Home Page:https://sites.google.com/view/balanced-mse/home

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bowen480 opened this issue · comments

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!

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

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.

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

I had solved this problem by reducing dimensions.Thank you.