Comments (8)
Can you please say which file you are referring to and which FastSurfer version you are using? I assume it is stats/aseg.stats
and the release version, so FastSurfer 2.2.2.
Generally, some zero-values in the stats file are expected, if these specific regions are "requested", but no voxels in the image are labeled as this region. In particular, with both your options (--fsaparc
) and that version, this file is generated by FreeSurfer's mri_segstats
. We are currently moving over to our own segstats.py
implementation, but this change is still only a PR for stats/aseg.stats
.
We should also note, that the regions that are zero in this file are regions that might be reasonably zero. Vessels are often not segmented and WM-hypointenisities are not lateralized.
I don't quite know why the 5th ventricle is 0, you might have to have a look at the mri/aseg.mgz
to see if any voxel was labeled 5th ventricle and if not, check if this is correct.
from fastsurfer.
Hello, yes it is from aseg.stats, and the version is the Dev branch from Feb 7th (I had to use the dev branch due to an OOM issue from the release branch). Not sure how to check version.
Looking into it further, it seems the 5th ventricle is rare and expected to be zero. The vessels and optic chiasm, however, I do not think should be zeros. I ran FastSurfer on 76 subjects and have FreeSurfer volumes for these same subjects, and they are non-zero (typically volume of 50 mm^3 for left vessel, and 187 mm^3 for optic chiasm). For all 76 subjects both traits were exactly 0 from FastSurfer. I am looking into whether the aseg.mgz has any voxels labeled as these now.
from fastsurfer.
OK, I do not believe that there are any voxels labeled as optic chiasm or 5th vessel (left or right) in aseg.mgz, assuming this is the correct look up table: https://github.com/Deep-MI/FastSurfer/blob/dev/FastSurferCNN/config/FreeSurferColorLUT.txt . The unique values in aseg.mgz are
array([ 0, 2, 3, 4, 5, 7, 8, 10, 11, 12, 13, 14, 15,
16, 17, 18, 24, 26, 28, 31, 41, 42, 43, 44, 46, 47,
49, 50, 51, 52, 53, 54, 58, 60, 63, 77, 251, 252, 253,
254, 255], dtype=int32)
Is this expected behavior that none will be labeled as these two regions? I understand both are small regions, and so maybe the values from freesurfer are just essentially noise (i.e., misclassification) and FastSurfer treats this noise slightly differently? Just want to make sure I am not making a mistake somewhere.
from fastsurfer.
This all seems correct to me.
FastSurfer actually combines some of the labels to reduce the number of labels in the training. For example there is one label for wm-hypointensities, not 5. You can find a list of learning-based labels https://github.com/Deep-MI/FastSurfer/blob/dev/FastSurferCNN/config/FastSurfer_ColorLUT.tsv.
So all additional labels are painted in after the fact, often using Freesurfer binaries.
I think your examples all fall into this category.
from fastsurfer.
Not sure how to check version.
./run_fastsurfer.sh --version
You can also add all
to get all the version information.
Please note that the dev branch is not a validated setup. It may produce unexpected results. We are currently working to implement CI to reduce this, but only the stable branch and released versions are rigorously tested.
Looking into it further, it seems the 5th ventricle is rare and expected to be zero. The vessels and optic chiasm, however, I do not think should be zeros. I ran FastSurfer on 76 subjects and have FreeSurfer volumes for these same subjects, and they are non-zero (typically volume of 50 mm^3 for left vessel, and 187 mm^3 for optic chiasm). For all 76 subjects both traits were exactly 0 from FastSurfer. I am looking into whether the aseg.mgz has any voxels labeled as these now.
I'll have a look at the numbers of these regions in our rigorous tests later. But we only do those tests for release versions.
from fastsurfer.
Also, I cannot really explain why your OOM errors were fixed by dev over the release version. That makes little sense to me.
from fastsurfer.
Hello, I was suggested to try this by: #444
It seems to have largely solved the issue (still happens but only on about 1/1000 cases, whereas before it was happening on most subjects).
from fastsurfer.
Hi, will close this now. It is correct that some labels are not generated in our segmentation network (such as 5th ventricle or optic chiasm). These labels were pretty unreliable and some are non existent in many subjects, which is why we dropped them. Other labels that don't get segmented directly in the neural net get either:
- added directly afterwards, e.g. by lateralisation of the combined label
- added afterwards in a separate module (e.g. corpus callosum, gets added in recon-surf and in the future will have it's own deep learning based module)
- added after surface creation, e.g. WM sub segmentation , as a projection from the cortical surface.
And some, like the ones above, get never created.
from fastsurfer.
Related Issues (20)
- Is it possible to get segstats of cerebellum after run FastSurfer pipeline? HOT 3
- Fooocus colab stopping with this error HOT 4
- FastSurfer surf pipeline did not finish: Missing .label files (not enough memory for mris_sample_parc) HOT 11
- conform.py bug HOT 2
- srun_fastsurfer.sh on HPC, surface pipeline fails for hundreds but works for tens of subjects HOT 8
- Question about content of wmparc.DKTatlas.mapped.mgz HOT 1
- Support for lesion masks? HOT 1
- Unmatched ROIs in predicted segmentation and provided FastSurfer_ColorLUT.tsv HOT 23
- FastSurfer Segmentation Modules: disable conformation of input image to isometric spaces HOT 5
- FastSurfer QuickSeg doesn't work with OASIS `.img` files HOT 3
- Docker build workflows HOT 5
- Model download issue HOT 22
- invalid index in smooth_aparc.py HOT 7
- FastSufer for multiple subjects HOT 4
- DKTAtlas instead of aparc.stats file in FastSurfer HOT 3
- recon_surf//functions.sh: line 38: -debug: command not found HOT 6
- no-cache argument for build.py HOT 2
- Updated Docker Image HOT 1
- Website hosting checkpoints down HOT 5
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 fastsurfer.