Comments (8)
yes! But it was a bad quick fix given the urgency at the time. Surely, a cleaner way exists ...
@joshuacwnewton let me know if you're looking into it or should I. In case you are looking into it, please note that the default threshold we decided was 0.1
. That means, if a user explicitly requires softseg then SCT should output a result with 0.1 threshold. This threshold value was chosen based on comparing different thresholds and their downstream effects on the spinal cord CSA! (details here)
from spinalcordtoolbox.
Thank you for finding this issue! That's very strange... I'm happy to investigate!
In the short term, does
-thr 0.01
work for you?
Yes this threshold works on the branch master
. Notice that the soft-segmentation works on the branch nk/4481-add-monai-postprocessing
.
from spinalcordtoolbox.
Thank you for finding this issue! That's very strange... I'm happy to investigate!
In the short term, does -thr 0.01
work for you?
from spinalcordtoolbox.
I think @naga-karthik fixed it here
from spinalcordtoolbox.
Taking a look at this now! My apologies for the delay.
from spinalcordtoolbox.
I was able to fix this issue and generate a softseg, and I'll be pushing a fix ASAP.
Off-topic
However, I noticed when I test with t2.nii.gz
, there are negative values in the output softseg? Also, the max value is > 1?
This surprised me, as I expect softsegs to be in the range [0, 1]
. Have you experienced this from the contrast agnostic model in the past?
from spinalcordtoolbox.
However, I noticed when I test with t2.nii.gz, there are negative values in the output softseg? Also, the max value is > 1?
could this be caused by interpretation when the prediction is resampled back to the input image resolution? But this would only happen with spline interpolation of order 2+ (which should not be used for segmentation anyway)
from spinalcordtoolbox.
@jcohenadad You're exactly right, opening a new issue. :)
from spinalcordtoolbox.
Related Issues (20)
- Is `line_angle()` still available in QC for looking at HOG performance? HOT 2
- Improve angle estimation for slicewise registration
- Replace deepseg MS lesion seg model
- `ValueError`: `module://matplotlib_inline.backend_inline is not a valid value` when running SCT scripts in Jupyter notbooks HOT 11
- Cannot checkout a release HOT 5
- Reuse of warping field should not happen if SCT version evolved HOT 2
- Label-based transformation during template registration is wrong HOT 14
- Different results when using `sct_deepseg` models trained with nnUNet in 3D Slicer HOT 1
- `ValueError: shapes not aligned` when generating QC report for BOLD data HOT 3
- Update documentation to explain how to integrate nnUNet models into 3D Slicer HOT 8
- Deprecate `sct_deepseg_{sc,lesion,gm}` and move the models to `sct_deepseg`
- Deduplicate "sct_apply_transfo + label dilation" code snippet in `sct_register_to_template` script
- Track upstream packages to determine when we can upgrade to `numpy==2.0.0` HOT 3
- How to run pytest via VSCode? HOT 10
- PermissionError: [Errno 13] Permission denied: '/tmp/sct_qc.00.lock' during QC report generation on `joplin` HOT 4
- Move caching logic from callers to `sct_straighten_spinalcord` itself
- Add edge (mirror) padding as preprocessing before inference for monai models HOT 1
- `sct_download_data` deletes the contents of the output folder by default, which is dangerous when combined with `-o` HOT 3
- `keep_largest_object` function exists in two scripts HOT 1
- Add entry `-p sct_deepseg` HOT 2
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 spinalcordtoolbox.