Giter Club home page Giter Club logo

Comments (4)

Jingnan-Jia avatar Jingnan-Jia commented on June 7, 2024 1

Hi Luan,

I fixed the issue. Now once you run “pip install seg-metrics --upgrade”, you can run you original code even you used the “~” sign in your path.

from segmentation_metrics.

Jingnan-Jia avatar Jingnan-Jia commented on June 7, 2024

Hi Luan,

Sorry for the late reply.

  1. Normally the reason of the issue is that the file names of two folders are different. So the program did not know which prediction corresponded to which ground truth. Please check if you set the file name correctly.
  2. It seems that you would like to calculate 20 pairs of cases, right? Then, you need to put 20 binary prediction to one folder, and put the other 20 binary ground truth to another folder. Note: the file names should be the same between the two folders. For instance, "prediction/1.nii, prediction/2.nii, ..." and "ground_truth/1.nii, ground_truth/2.nii, ..."
  3. labels = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] this line may be wrong. Because the labels should be [0,1] for binary image metrics calculation. 0 means backgournd and 1 means foreground if your ground truth and prediction is binarized with 0 and 1.

If you still have question please let me know.

from segmentation_metrics.

lraguiars avatar lraguiars commented on June 7, 2024

Hi Jingnan,

I did it !! That was the problem "~". (as you told me)
Thank you very much for everything.

Best,
Luan.

from segmentation_metrics.

lraguiars avatar lraguiars commented on June 7, 2024

Hi Jingnan,

Thank you very much !!!

from segmentation_metrics.

Related Issues (17)

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.