Giter Site home page Giter Site logo

Comments (7)

aurora95 avatar aurora95 commented on July 3, 2024

I'm not familiar with this dataset, is it a 3D segmentation dataset? If so I think you cannot directly use current models.
Or if you can do segmentation for each 240x240x4 image, maybe ResNet50 is ok (I'm not sure if it's good to use imagenet-pretrained weights), but you need to adapt many things. The data generater must be changed to deal with your 4 channel data, and you may need to change some parameters like class number, and if you don't need to ignore any label, you should change the loss function.

from keras-fcn.

Ssica avatar Ssica commented on July 3, 2024

I'm planning to run it on the axial plane, thus the input is 2D where I would upsample the X-space from 155 to 240.
I'm planning to train the weights from scratch, thus I was thinking I could simply just change the input channel numbers to 4 in the model, and just run the training.

The current model does not seem to use labels when training, since it uses pre-trained weights,
what would I need to change to add this to the architecture if any (mostly looking at the classification layer)? And am I overlooking some other things which I need to change before I can train (overlooking hyperparameters, loss functions etc)

EDIT: grammar

from keras-fcn.

Ssica avatar Ssica commented on July 3, 2024

Hi again,

I ran into an error when using your Bilinear 2D Upsampling layer, and was hoping if you could point me towards the right direction.

ValueError: Error when checking target: expected bilinear_up_sampling2d_1 to have shape (None, 8, 8, 5) but got array with shape (4800, 240, 240, 1)

Ive tried to go through the code, but since it seems that the shapes are mostly calculated dynamically I can't see what caused the error.

from keras-fcn.

Ssica avatar Ssica commented on July 3, 2024

After looking further into the problem, it seems that there is not a problem with your Bilinear 2D Upsampling layer implementation, though I still get the error and am not sure what is going wrong, it might just be something very trivial/basic.

Basically my network is expecting my last layer to receive (None, 8, 8, 5) but it gets (4800, 240, 240, 1) which is my amount of X training data. Any help would be gladly appreciated

from keras-fcn.

ahundt avatar ahundt commented on July 3, 2024

@Ssica do you have a fork with actual code you can link to?

from keras-fcn.

Ssica avatar Ssica commented on July 3, 2024

No unfortunately not but I can make one, I found out it was because I wanted to use another loss function which expected an incorrect output, so I've settled with using the same loss function as used in this repo/project. If you are interested in how it performs on the BRATS dataset I'll gladly make a github repo with it and post the results, though it seems that the training overfits and I'm thinking of using dropout

from keras-fcn.

ahundt avatar ahundt commented on July 3, 2024

@Ssica also be sure to read the journal paper on the same topic https://arxiv.org/abs/1605.06211, it contains a lot of additional useful information, and there is another useful paper on dilated convolutions https://arxiv.org/abs/1511.07122

from keras-fcn.

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.