Commit 9aea4e05 authored by Benjamin Thomas Graham's avatar Benjamin Thomas Graham
Browse files

unet stride, readme

parent 4a543082
...@@ -136,7 +136,7 @@ conda install google-sparsehash -c bioconda # OR apt-get install libsparsehash ...@@ -136,7 +136,7 @@ conda install google-sparsehash -c bioconda # OR apt-get install libsparsehash
conda install -c anaconda pillow conda install -c anaconda pillow
git clone git@github.com:facebookresearch/SparseConvNet.git git clone git@github.com:facebookresearch/SparseConvNet.git
cd SparseConvNet/ cd SparseConvNet/
bash build.sh bash develop.sh
``` ```
To run the examples you may also need to install unrar: To run the examples you may also need to install unrar:
``` ```
......
...@@ -26,7 +26,7 @@ class Model(nn.Module): ...@@ -26,7 +26,7 @@ class Model(nn.Module):
self.sparseModel = scn.Sequential().add( self.sparseModel = scn.Sequential().add(
scn.InputLayer(dimension, data.spatialSize, mode=3)).add( scn.InputLayer(dimension, data.spatialSize, mode=3)).add(
scn.SubmanifoldConvolution(dimension, 1, m, 3, False)).add( scn.SubmanifoldConvolution(dimension, 1, m, 3, False)).add(
scn.UNet(dimension, reps, nPlanes, residual_blocks=False, downsample=[3,2])).add( scn.UNet(dimension, reps, nPlanes, residual_blocks=False, downsample=[2,2])).add(
scn.BatchNormReLU(m)).add( scn.BatchNormReLU(m)).add(
scn.OutputLayer(dimension)) scn.OutputLayer(dimension))
self.linear = nn.Linear(m, data.nClassesTotal) self.linear = nn.Linear(m, data.nClassesTotal)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment