Giter Site home page Giter Site logo

Comments (5)

ladislav-urban avatar ladislav-urban commented on August 22, 2024 1

Hi Wenqi Li,
thanks a lot for the advice! The training is now working without errors.

from niftynet.

wyli avatar wyli commented on August 22, 2024

Hi @ladislav-urban many thanks for the feedback! This could happen when the largest voxel value in the discrete segmentation maps is greater than num_classes in the config file (since the voxel values are used as sparse binary map indices). Could you check if that's the case?

from niftynet.

ladislav-urban avatar ladislav-urban commented on August 22, 2024

Hi Wenqi Li,
thanks for your quick answer! I do use default promise12 dataset. I have checked segmentation files in directories: TrainingData_Part1 to TrainingData_Part3. These are files starting from Case00_segmentation.mhd till Case49_segmentation.mhd . They include only values 0 or 1. There is a settings num_classes = 2 in the config files.
Can the higher voxel numbers be created by data augmentation process?
Thanks a lot for your answer
Ladislav

from niftynet.

wyli avatar wyli commented on August 22, 2024

Yes I think you're right, the interp_order parameter should be 0 for [label] section, which means using the nearest neighbour interpolation in the data augmentations. Thanks and I'll update the config files.

from niftynet.

qianjiangcn avatar qianjiangcn commented on August 22, 2024

I have been running into the same issue.
InvalidArgumentError (see above for traceback): Provided indices are out-of-bounds w.r.t. dense side with broadcasted shape
[[{{node worker_0/loss_function/map/while/mul}} = SparseDenseCwiseMul[T=DT_FLOAT, _class=["loc:@worke...tackPushV2"], _device="/job:localhost/replica:0/task:0/device:CPU:0"](worker_0/loss_function/map/while/SparseReshape, worker_0/loss_function/map/while/ones_like, worker_0/loss_function/map/while/SparseReshape:1, worker_0/loss_function/map/while/Softmax)]]

As stated, this could happen when the largest voxel value in the discrete segmentation maps is greater than num_classes in the config file.
what do you mean largest voxel value in the discrete segmentation maps?
my spatial window is 32 and the num_classes in the config is 160.

Thank you very much !

from niftynet.

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.