Comments (4)
Never mind. Just discovered it in notebook.
from brain-tumor-segmentation.
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.
Let me know if this works.
from brain-tumor-segmentation.
@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)
- Same dataset HOT 2
- Cross Entropy HOT 1
- Brats Dataset HOT 1
- device is not defined. Shouldn't it be self.device instead of just device? HOT 1
- unet TypeError: function takes exactly 1 argument (3 given) HOT 6
- Adapt to multiple class segmentation HOT 1
- nn.functional.sigmoid is deprecated
- Update torchsummary to torchinfo
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.
from brain-tumor-segmentation.