Comments (6)
You can generate predictions using predict.py and then create a notebook or script to load the images with nibabel/numpy and generate metrics against the ground truth.
Monai has some metrics you can use: https://docs.monai.io/en/stable/metrics.html
from 3dunetcnn.
抱歉我描述錯誤,其實我是想去測試資料集中其中一個nii檔,使用predict.py分割可以得到分割後的nii檔案或圖片。但我不太懂predict.py的參數
python D:\3DUnetCNN\unet3d\scripts\predict.py --output_directory test_seg --config_filename brats2020_config.json --model_filename brats2020_config\fold5\model_best.pth --group test\BraTS20_Training_048_t1.nii
from 3dunetcnn.
The filenames in the configuration file are split up into different "groups", typically: "training", "validation", and sometimes "test". If you are using the BRATS 2020 example, I think you should use "validation" as your group.
So the command should look like:
python D:\3DUnetCNN\unet3d\scripts\predict.py --output_directory test_seg --config_filename brats2020_config\fold5\config.json --model_filename brats2020_config\fold5\model_best.pth --group validation
Let me know if that works and I will add it to the tutorial.
from 3dunetcnn.
不好意思,我找不到brats2020_config\fold5\config.json這個檔案
from 3dunetcnn.
from 3dunetcnn.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you are still wanting followup to this issue, please ping the thread by leaving a comment. You may also contact [email protected] with questions.
from 3dunetcnn.
Related Issues (20)
- scripts problems HOT 9
- problems in cross validation training HOT 8
- About Evaluation metrics for BraTS example HOT 3
- KeyError: 'config' during evaluation on brats example HOT 4
- I didn't make any changes. I couldn't find the file when I ran the sample file. HOT 2
- An error occurred during the evaluation HOT 2
- Issue with predict.py and resampling scans back into the original space. HOT 2
- The train.py seems no args of "model_filename" and "training_log_filename" HOT 2
- How to use it to train in my own dataset HOT 2
- I'm really sorry for bothering you. HOT 3
- I'm really sorry for bothering you HOT 2
- Unable to clone HOT 2
- Runtime errror HOT 5
- Runtime error
- ImportError: attempted relative import with no known parent package HOT 2
- Loss value is abnormal HOT 2
- predict.py issue HOT 1
- new issue HOT 1
- Can't run the program! HOT 3
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 3dunetcnn.