Code Monkey home page Code Monkey logo

Comments (3)

PatRyg99 avatar PatRyg99 commented on August 15, 2024

Input point clouds should be of the format: $N \times 4$, where $N$ - number of points, and for each point there is a tuple $(x, y, z, L)$ where $(x, y, z)$ are 3D coordinates of a given point and $L$ is a GT label. If you have data in a different format you can just plug your own transforms since in the training_step in SegmentatorModule point cloud is already split into coordinates $(x, y, z)$ and labels $(L,)$.

from eigenvector-grouping.

LaurensCorbiere avatar LaurensCorbiere commented on August 15, 2024

Thanks for your clear explanation!

I assume that this is a format for the point clouds of one patient. How do I structure the point clouds of multiple patients?

from eigenvector-grouping.

PatRyg99 avatar PatRyg99 commented on August 15, 2024

Yes, that's for one patient, I stored point clouds for each patient in separate files. I'm using Monai dataset, which expects data to be provided as a list of dictionaries, so with separate files for each patient, my input list to the dataset object looks like this:

[
    {"input": "path/to/sample_1.npy"},
    {"input": "path/to/sample_2.npy"},
    ...
    {"input": "path/to/sample_n.npy"}
]

If you store all patients in one file you can just load it a priori, built a list of format provided above and skip LoadImaged transform.

from eigenvector-grouping.

Related Issues (3)

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.