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

Prediction gets stuck #37

Open
hamid13r opened this issue Oct 16, 2024 · 8 comments
Open

Prediction gets stuck #37

hamid13r opened this issue Oct 16, 2024 · 8 comments

Comments

@hamid13r
Copy link

Dear all,

I was trying to follow the fidder tutorial for Warptools session but the python code gets stuck forever when trying to predict the fiducial locations. Then I noticed the same thing happens to the command-line usage:
I run this command:
fidder predict --input-image frames/average/JTL016A_2_L01_ts_002_001_0001_-0.0_May04_02.40.07.mrc --probability-threshold 0.5 --output-mask mask.mrc

And I get this output:

fidder_output.txt

And nothing happens for a very long time (hours I believe).

Any idea what I am doing wrong? I even tried to bin the micrograph to make it very small, hoping to make it faster.

Thanks,
Hamid

@alisterburt
Copy link
Member

Hi Hamid,

Are you comfortable dropping into the Python layer and running things manually to see where things get stuck? I suspect it's struggling to count pixels in each subregion in a poor segmentation

@hamid13r
Copy link
Author

Oh it runs in a second in the python layer, and as you predicted the segmentation was pretty poor (a lot of membrane etc were segmented as fiducial).

Is there anything other than thew probability threshold to change?

@alisterburt
Copy link
Member

Can you send a picture of the segmentation? Probability threshold and if that fails adding some of your data to the training data and retraining would be my recommendations

@hamid13r
Copy link
Author

This is the image:
image
and this is the mask
image
(I just did plt.imshow so that is probably why there is a rotation.)

@alisterburt
Copy link
Member

And if you look at the probability threshold is there a threshold that works better?

@hamid13r
Copy link
Author

No, seems like the membrane somehow scored pretty high here.
Sorry I should have included this in the last post, this is threshold=0.99
image

@alisterburt
Copy link
Member

looks like it'll need a few extra training images! If you send a few (5? at different tilts) across I'll add them and retrain

@hamid13r
Copy link
Author

That would be amazing.

I will email you a dropbox link.

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

2 participants