Giter VIP home page Giter VIP logo

3d-skipdenseseg's People

Contributors

tbuikr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

3d-skipdenseseg's Issues

up_block num_groups causes error

At segmentor_v1.py line 100 i think you have a potential bug:

Code:

up_block = nn.ConvTranspose3d(num_features, num_classes, kernel_size=2 ** (i + 1) + 2, stride=2 ** (i + 1), padding=1, groups=num_classes, bias=False)

Bug:

while iterating with your settings: config[0] = 6, growth rate = 16 and num_init_features = 32 you will get the following out channels of the Dense Layers:

  • 48
  • 64
  • 80
  • 96
  • 112
  • 128

Let's say, i want to segment into 9 classes, and you set up_block = nn.ConvTranspose3d(... groups=num_classes ...) then in your code: num_features = 32 + 6 * 16 = 128 is correct for the first loop but 128 is not divisible by 9 and thus creating the following error: ValueError: in_channels must be divisible by groups

  • Solution 1: remove the parameter num_groups and have more trainable parameters or
  • Solution 2: calculate the variables based on the num_classes so that the division works

Did i miss something?

If this is intentional, then you might not let the user have to find the correct parameters. You could calculate them based on the num_classes ๐Ÿ™‚

However, thanks for sharing ๐Ÿ‘

Train on my own dataset

Hi!
First of all, thank you very much for sharing your project. It's a great job, congratulations!

I would like to train your network with my own dataset. I've .nii MRI files, Sagital T2 and STIR. Each file (patient) has got several slices, between 12 and 16 (shape=[nslices, 256, 256]).

Could you tell me if would be possible to train it with your network?
And, in the event that it is possible, how must I organize the data for training, i.e., all the slices in one array, each file in one array...?
For example, if I use 60 patients (.nii files) to train, "mri_data_train" should be of size [60xnslices,256,256]?
image

Thank you very much in advance!

All the best :)

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.