Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
SparseConvNet
Commits
9aea4e05
Commit
9aea4e05
authored
Nov 28, 2018
by
Benjamin Thomas Graham
Browse files
unet stride, readme
parent
4a543082
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
examples/3d_segmentation/unet.py
examples/3d_segmentation/unet.py
+1
-1
No files found.
README.md
View file @
9aea4e05
...
@@ -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:
```
```
...
...
examples/3d_segmentation/unet.py
View file @
9aea4e05
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment