Comments (7)
Have you tried with a smaller data array?
from tomopy.
Hello Doga,
The full image size is 2560 by 2160. I initially ran 100 slices.
I did two tests after reading your email:
-
using a set of images with size of 1143 by 1040, 100 slices;
-
using the full image size of 2560 by 2160, but reduce slice number from 100 to 10.
In both cases, the remove_background finished without error!
My situation is: I need to process the full size of the images because the large size of the sample. I also need to correct the image tilt (I am thinking of using "d.correct_tilt") which I assume I have to use a reasonable large number of slices for the angle correction, right? What do you suggest?
By the way, I remember sometime before I was told to use only 180 degree of data. Can we process data with larger rotation angle now?
Thanks a lot.
Rong
From: Doga Gursoy [email protected]
Sent: Thursday, April 9, 2015 9:54 AM
To: tomopy/tomopy
Cc: Rong Huang
Subject: Re: [tomopy] OverflowError in remove_background (#73)
Have you tried with a smaller data array?
Reply to this email directly or view it on GitHubhttps://github.com//issues/73#issuecomment-91238754.
from tomopy.
As I remember, the function requires a lot of memory to process, so unfortunately you can't process all images at once. But you can apply it iteratively.
It's been a while I haven't used or checked correct_tilt
. So I can't comment on that much. But I'll try to look into that.
You can sure process data with any angle. Just define your theta
correctly.
from tomopy.
Dear Doga,
If I understand you correctly, increase my PC RAM should be helpful for this issue, right?
I guess somewhere tomopy probably changed the way of how the processes were handled. While I use the same PC to process the same data, the older tomopy works fine, but the currently cloned tomopy does not.
Thanks a lot for the help!
Best regards,
Rong
From: Doga Gursoy [email protected]
Sent: Friday, April 10, 2015 5:58 PM
To: tomopy/tomopy
Cc: Rong Huang
Subject: Re: [tomopy] OverflowError in remove_background (#73)
As I remember, the function requires a lot of memory to process, so unfortunately you can't process all images at once. But you can apply it iteratively.
It's been a while I haven't used or checked correct_tilt. So I can't comment on that much. But I'll try to look into that.
You can sure process data with any angle. Just define your theta correctly.
Reply to this email directly or view it on GitHubhttps://github.com//issues/73#issuecomment-91703821.
from tomopy.
Of course, but you may still need iterations for the full dataset. I suggest you to monitor the memory consumption for a specified number of slices. From that you can estimate roughly the required memory for the whole data.
I am not sure exactly what has changed. Maybe multiprocessing could have caused that. You can try remove_background(num_cores=1)
. It'll take more time but may save you some memory.
from tomopy.
Dear Doga,
Thank you for the very helpful discussions!
Best regards,
Rong
From: Doga Gursoy [email protected]
Sent: Saturday, April 11, 2015 12:58 AM
To: tomopy/tomopy
Cc: Rong Huang
Subject: Re: [tomopy] OverflowError in remove_background (#73)
Of course, but you may still need iterations for the full dataset. I suggest you to monitor the memory consumption for a specified number of slices. From that you can estimate roughly the required memory for the whole data.
I am not sure exactly what has changed. Maybe multiprocessing could have caused that. You can try remove_background(num_cores=1). It'll take more time but may save you some memory.
Reply to this email directly or view it on GitHubhttps://github.com//issues/73#issuecomment-91761255.
from tomopy.
You're welcome Rong.
from tomopy.
Related Issues (20)
- How to Choose Divisor Value for Data normalization HOT 1
- ModuleNotFoundError: TomoPy links to compiled components which are installed separately and loaded using ctypes.util.find_library(). A required library, tomo-recon, was not found. HOT 8
- How to output the 3 D visualization results HOT 4
- Improve documentation terminology for ROI in normalize_roi HOT 2
- Trying 3D Reconstructruction of Metal foam from 2D Projections (X-ray images) but facing issue using Tomopy HOT 26
- Missing dimension check in gridrec
- Help me in MLEM HOT 1
- GPU Support on Windows 10 HOT 1
- FileNotFoundError: Could not find module 'libtomopy-gridrec.dll' (or one of its dependencies). Try using the full path with constructor syntax. HOT 2
- tomopy.recon with OSEM: blank image with num_block>=3 for num_iter>=2 HOT 1
- Is FBP actually BP in tomopy? What does "filters are not implemented" in FBP mean? HOT 1
- Reconstruction units using different algorithms HOT 3
- Nondeterministic output of remove_ring() HOT 11
- cuda error when installing the tomopy on a computer of Window 10 HOT 1
- retrieve_phase Paganin filter HOT 2
- tomo-recon HOT 5
- Access Violation Error on remove_outlier3d HOT 6
- Can't install on macOS Sonoma (M1) HOT 11
- questions about normalization in tomo.recon HOT 1
- How to obtain 3D data projection of specific directional angle and pitch angle HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tomopy.