Git Product home page Git Product logo

Comments (6)

ellisdg avatar ellisdg commented on July 20, 2024

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.

Yueem avatar Yueem commented on July 20, 2024

抱歉我描述錯誤,其實我是想去測試資料集中其中一個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.

ellisdg avatar ellisdg commented on July 20, 2024

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.

Yueem avatar Yueem commented on July 20, 2024

不好意思,我找不到brats2020_config\fold5\config.json這個檔案

from 3dunetcnn.

ellisdg avatar ellisdg commented on July 20, 2024

from 3dunetcnn.

stale avatar stale commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.