-
Notifications
You must be signed in to change notification settings - Fork 43
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
Outofmemory error #1
Comments
I am also having same issue. |
@truongtd6285 can you make a pull request with this improvement or share your modification somehow? I cannot open the attached file. |
i don't know how to create pull request, so please find attached file here or here |
@truongtd6285 I tried to execute your uploaded code. Please help.Urgently required for my project.Thank-you |
which version of Python are you using, mine v2.7. Error occurred due to KDTree docstring in scipy.spatial. You can find some hint here scipy/scipy#4527 |
@truongtd6285 But I am also using v2.7. And the link you provided seems to refer to an issue of Python 3. |
i got the same this error before, but don't remember exactly how i fixed it. It related to input data of scipy.spatial.KDTree(np.asarray(swts)) not properly as required. Let i remember. You can run the code step by step and see what input data you give the function |
Thanks I could resolve the error later. |
You can set diagnostics = TRUE to write intermediate images created while transforming: |
I have tried with different resolutions and images. |
while running swt.py iam facing following memory error
Traceback (most recent call last):
File "swt.py", line 375, in
final_mask = SWTScrubber.scrub(local_filename)
File "swt.py", line 30, in scrub
shapes = cls._connect_components(swt)
File "swt.py", line 238, in _connect_components
layers[common_label] = np.zeros(shape=swt.shape, dtype=np.uint16)
MemoryError
i believe that this is because we are creating to many images usingnp.zeros(shape=swt.shape, dtype=np.uint16) which currently filling up ram
could u please suggest an alternative or correction to the connect_components function
The text was updated successfully, but these errors were encountered: