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

Divide by zero and Out of memory error #45

Open
Jorisfournel opened this issue Oct 18, 2017 · 2 comments
Open

Divide by zero and Out of memory error #45

Jorisfournel opened this issue Oct 18, 2017 · 2 comments

Comments

@Jorisfournel
Copy link

I get the following error :

VNet.py:53: RuntimeWarning: divide by zero encountered in divide
weightData[defLab == 1] = np.prod(defLab.shape) / np.sum((defLab==1).astype(dtype=np.float32))
F1018 14:52:56.896700 11971 syncedmem.cpp:51] Check failed: error == cudaSuccess (2 vs. 0) out of memory
*** Check failure stack trace: ***
Abandon (core dumped)

Any idea ? Can the divide by zero be linked to the out of memory error or is it just that my GPU memory is too small ?

@XYZ-916
Copy link

XYZ-916 commented Nov 8, 2018

I have the same error as yours. And have you solved your problem? If solved, I'll appreciate it when you can share your solution with me. 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

3 participants
@XYZ-916 @Jorisfournel and others