Code Monkey home page Code Monkey logo

augmenteddataloader's Issues

Debug path

Prima di rilasciare il batch, se richiesto dall'utente, salvare per ogni immagine del batch la fetta centrale nel path specificato dall'utente

Benchmark

Sviluppare 3 benchmark con 0, 5, 10 trasformazioni in augmentation sia per gpu che cpu

ImageToImageDataset

Hi,

I am encountering an issue with the ImageToImageDataset class in the MONAI library, specifically regarding the shape of loaded images.

  1. Modification of __len__ Method:
    First, I noticed that I had to modify the __len__ method to:
    '''
    def len(self) -> int:
    return len(self.first_type_image_files) '''

Second, Issue with Image Loading:

The main concern arises with the loading of images in the getitem method. The class uses the LoadImage transformer to load the images, and I added print statements to check the shape of the loaded images. However, instead of getting a 3D tensor shape, which I expected for medical images (like MRI or CT scans), the loaded images are in 2D shape.
Here is the output I observed:

Loaded MR Image Shape: torch.Size([244, 204])
Loaded CT Image Shape: torch.Size([244, 204])
Loaded Mask Image Shape: torch.Size([244, 204])

I am trying to load and process 3D medical images, but the dataset seems to be returning 2D slices or incorrectly shaped tensors.

Could you please advise on how to resolve this issue? Is there a specific parameter or method I should use to ensure the images are correctly loaded as 3D tensors?

Thank you for your assistance.

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.