-
Notifications
You must be signed in to change notification settings - Fork 6
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
How to chosse the cut-off value for delete images with bad quality? #20
Comments
Hi @EdithGaspar, |
There's no rule of thumb to do this. As we introduced in our MRIQC paper (https://doi.org/10.1371/journal.pone.0184661), you can train a classifier on a subset of your data (that you manually annotate) to then apply it on the remainder of the dataset. The original code for the classifier was moved into the nipreps/mriqc-learn repo. Perhaps @jaimebarran or @t-sanchez, who have recently worked with mriqc-learn, can give you some insights or share their experience. |
Hi @EdithGaspar, You can use the baseline model https://github.com/nipreps/mriqc-learn as follows:
And then you can use
I would recommend you to retrain the model with updated Python libraries (numpy, sklearn, etc.) before getting directly the model from the repo. You can do that following the tutorial https://github.com/nipreps/mriqc-learn/blob/main/docs/notebooks/Tutorial.ipynb, saving the trained model using:
In addition, you could train the model with your data as long as you have subjective ratings, loading your prepared data using Let me know if you need additional help! Cheers! |
@jaimebarran
So I downloaded the raw classifier.joblib file from this repo and added it to where I thought it should be:
I get the following error. Any ideas?
|
Hi @andrew-yian-sun !
Is this how is should be? @oesteban @celprov
I see you are using
PS: I didn't install mriqc-learn, I forked the repo and modify it my own way. |
Hi @jaimebarran, thanks for the tip - but it seems like either way (forking the repo, trying different options for mmap_mode) result in the same error message. I wonder if it's because the model was created with an older version of joblib but my version is too recent? My version 1.4.0 |
Hi @andrew-yian-sun, Yes, it seems from your error code that
You can try to regenerate the I was using joblib v1.2.0 and it worked with some warnings. I updated it to v1.4.0 and it worked without warnings. Cheers! |
I have the MRIQC results from 1000 subjects, but i dont understand how can i choose the cut-off value for choose my best images or that ones to delete
The text was updated successfully, but these errors were encountered: