-
Notifications
You must be signed in to change notification settings - Fork 28
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
Memory issue #34
Comments
ah, there is a bug, should move the three lines within else:
and the value of |
Hi i think if you remove the line as above, maybe the source code can not run
I think the best way to fix that is evaluate for every sample not for all val set |
yes, you are right. I'd refactor the code a bit when I get some free time. I remember the reason I appended all predictions together to compute metrics, it's because each test image only contains one or two classes among 9 classes, and appending them together can get a whole/stable confusion metrics across all val images. It's also fine to evaluate one by one then average them, like the val loss. |
Hi @samleoqh
Thank you for your release source code. It helps me a lot.
During training process, I met a problem related to memory.
The process consume a lot of memory, over 150GB RAM. I think the problem in the
validate
function. Because you append all the input/output data to theinputs_all, gts_all, predictions_all
The text was updated successfully, but these errors were encountered: