Git Product home page Git Product logo

Comments (4)

muminoff avatar muminoff commented on May 20, 2024 1

Never mind. Just discovered it in notebook.

from brain-tumor-segmentation.

sdsubhajitdas avatar sdsubhajitdas commented on May 20, 2024

In the bts package inside dataset.py you can see the TumorDataset class.
Inside TumorDataset's constructor you can see there are some default transformations

self.default_transformation = transforms.Compose([
            transforms.Grayscale(),
            transforms.Resize((512, 512))
        ])

You can change the Resize transformation size

self.default_transformation = transforms.Compose([
            transforms.Grayscale(),
            transforms.Resize((1024, 1024))
        ])

I think this will do the trick. After creating the model you can call the summary function on the model object the input size parameter u want. That will show you the sizes in each step.

Inside model.py DynamicUNet class.

def summary(self, input_size=(1, 512, 512), batch_size=-1, device='cuda'):
        """ Get the summary of the network in a chart like form
        with name of layer size of the inputs and parameters 
        and some extra memory details.
        This method uses the torchsummary package.
        For more information check the link.
        Link :- https://github.com/sksq96/pytorch-summary
        Parameters:
            input_size(tuple): Size of the input for the network in
                                 format (Channel, Width, Height).
                                 Default: (1,512,512)
            batch_size(int): Batch size for the network.
                                Default: -1
            device(str): Device on which the network is loaded.
                            Device can be 'cuda' or 'cpu'.
                            Default: 'cuda'
        Returns:
            A printed output for IPython Notebooks.
            Table with 3 columns for Layer Name, Input Size and Parameters.
            torchsummary.summary() method is used.
        """

from brain-tumor-segmentation.

sdsubhajitdas avatar sdsubhajitdas commented on May 20, 2024

Let me know if this works.

from brain-tumor-segmentation.

muminoff avatar muminoff commented on May 20, 2024

@sdsubhajitdas Thanks for the detailed info and apologizes for late response.

How about training process?
Can you suggest how to do it?
There is no instruction on readme.
AFAIK api.py file only provides prediction operation.

from brain-tumor-segmentation.

Related Issues (9)

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.