3d-skipdenseseg's People
Forkers
yangsenwxy desperado11 ets-research-repositories xiaochengcike justindd dntai sixitingting saqibmamoon nova0930 wttsukidayo sufianirshad3d-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]?
Thank you very much in advance!
All the best :)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.