Giter VIP home page Giter VIP logo

Comments (7)

taigw avatar taigw commented on July 20, 2024 2

To save memeory, the training and testing were based on image patches, not the entire image size. The convolution in the z-axis was based on 'valid' mode, that's why the output size is reduced by 8 in z-axis.

from brats17.

wellescastro avatar wellescastro commented on July 20, 2024

+1

from brats17.

HowieMa avatar HowieMa commented on July 20, 2024

+1
That is so wired!
I use the dataset of BRATS15, the original data shape is 155 * 240 * 240, but the sub image shape is 19 * 144 * 144.

According to his function ,
center_point = get_random_roi_sampling_center(volume_shape, sub_label_shape, batch_sample_model, boundingbox) #

and also
sub_data_moda = extract_roi_from_volume(transposed_volumes[moda],center_point,sub_data_shape)
it seems that your randomly get a sub image by cropping the original image, which I think may miss some information of the tumor.
How do you guarantee this cropping method will get all the tumor information we want?

from brats17.

leigaoyi avatar leigaoyi commented on July 20, 2024

I love this question, I run the MSNet and get 91.4% in whole tumor segmentation on BRATS2015 with this (19, 144, 144, 4), but I don't understand why 19 and 11.

from brats17.

HowieMa avatar HowieMa commented on July 20, 2024

I love this question, I run the MSNet and get 91.4% in whole tumor segmentation on BRATS2015 with this (19, 144, 144, 4), but I don't understand why 19 and 11.

Well, it is the problem of the model if self !
You could revise util/MSNet.py like

if __name__ == '__main__':
    x = tf.placeholder(tf.float32, shape = [1, 96, 96, 96, 1])
    y = tf.placeholder(tf.float32, shape = [1, 96, 96, 96, 2])
    net = MSNet(num_classes=2)
    predicty = net(x, is_training = True)
    print(x)
    print(predicty)
    print (Y)

ant run it like

python util/MSNet.py

You will find that the result is

shape .....
(1, 96, 96, 96, 1)
(1, 88, 96, 96, 2)
(1, 96, 96, 96, 2)

I hope this could help you solve the problem

from brats17.

leigaoyi avatar leigaoyi commented on July 20, 2024

I love this question, I run the MSNet and get 91.4% in whole tumor segmentation on BRATS2015 with this (19, 144, 144, 4), but I don't understand why 19 and 11.

Well, it is the problem of the model if self !
You could revise util/MSNet.py like

if __name__ == '__main__':
    x = tf.placeholder(tf.float32, shape = [1, 96, 96, 96, 1])
    y = tf.placeholder(tf.float32, shape = [1, 96, 96, 96, 2])
    net = MSNet(num_classes=2)
    predicty = net(x, is_training = True)
    print(x)
    print(predicty)
    print (Y)

ant run it like

python util/MSNet.py

You will find that the result is

shape .....
(1, 96, 96, 96, 1)
(1, 88, 96, 96, 2)
(1, 96, 96, 96, 2)

I hope this could help you solve the problem

我又思考了一遍,沿着axial轴截了19(155),但是后续沿着coronal, sagittal方向,也是截了19,三个长方体叠起来,是不是覆盖了大部分范围。

from brats17.

HowieMa avatar HowieMa commented on July 20, 2024

I love this question, I run the MSNet and get 91.4% in whole tumor segmentation on BRATS2015 with this (19, 144, 144, 4), but I don't understand why 19 and 11.

Well, it is the problem of the model if self !
You could revise util/MSNet.py like

if __name__ == '__main__':
    x = tf.placeholder(tf.float32, shape = [1, 96, 96, 96, 1])
    y = tf.placeholder(tf.float32, shape = [1, 96, 96, 96, 2])
    net = MSNet(num_classes=2)
    predicty = net(x, is_training = True)
    print(x)
    print(predicty)
    print (Y)

ant run it like
python util/MSNet.py
You will find that the result is

shape .....
(1, 96, 96, 96, 1)
(1, 88, 96, 96, 2)
(1, 96, 96, 96, 2)

I hope this could help you solve the problem

我又思考了一遍,沿着axial轴截了19(155),但是后续沿着coronal, sagittal方向,也是截了19,三个长方体叠起来,是不是覆盖了大部分范围。

yeah! As you know, the shape of raw data is 155 * 240 * 240, but we only randomly select some data with shape of 19 * 144 * 144 from the raw data. This is because with a large iteration (like here is 20000), we can cover the whole data (155 * 240 * 240)probabilistically speaking.

I guess he did so because it could help save the memory use when training or testing!

from brats17.

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.