-
Notifications
You must be signed in to change notification settings - Fork 653
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
請問已經訓練出模型出來,該如何去測試模型分割是否理想? #328
Comments
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. |
抱歉我描述錯誤,其實我是想去測試資料集中其中一個nii檔,使用predict.py分割可以得到分割後的nii檔案或圖片。但我不太懂predict.py的參數 |
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. Let me know if that works and I will add it to the tutorial. |
不好意思,我找不到brats2020_config\fold5\config.json這個檔案 |
What was the training command that you ran?
|
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. |
sorry to bother,you. I am using my own dataset and commands you mentioned, but don't get a normal 0-1 segmentation but a result like this below, I wonder why this happened |
The predict.py script writes the output from your model which will be logit values. Using the predict.py script you can specify for it to pass the logit values through an activation function such as "sigmoid" or "softmax" before writing the predictions to file. Then to get binary values you can load the images in python using nibabel and use numpy to apply a threshold to the values (i.e. > 0.5) to get binary segmentation values. |
No description provided.
The text was updated successfully, but these errors were encountered: