Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
6745a4e4
Commit
6745a4e4
authored
Oct 14, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
174a62c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
examples/HED/README.md
examples/HED/README.md
+5
-4
examples/HED/hed.py
examples/HED/hed.py
+1
-1
examples/README.md
examples/README.md
+1
-0
No files found.
examples/HED/README.md
View file @
6745a4e4
...
@@ -6,6 +6,7 @@ Reproduce the HED paper by Saining. See [https://arxiv.org/abs/1504.06375](https
...
@@ -6,6 +6,7 @@ Reproduce the HED paper by Saining. See [https://arxiv.org/abs/1504.06375](https


(Bottom-left: raw fused heatmap; Middle and right column: raw heatmaps at different stages)
(Bottom-left: raw fused heatmap; Middle and right column: raw heatmaps at different stages)
HED is a fully-convolutional architecture. This code generally would also work
HED is a fully-convolutional architecture. This code generally would also work
for other FCN tasks such as semantic segmentation and detection.
for other FCN tasks such as semantic segmentation and detection.
...
@@ -18,22 +19,22 @@ It requires pretrained vgg16 model. See the docs in [examples/load-vgg16.py](../
...
@@ -18,22 +19,22 @@ It requires pretrained vgg16 model. See the docs in [examples/load-vgg16.py](../
for instructions to convert from vgg16 caffe model.
for instructions to convert from vgg16 caffe model.
To view augmented training images:
To view augmented training images:
```
```
bash
./hed.py
--view
./hed.py
--view
```
```
To start training:
To start training:
```
```
bash
./hed.py
--load
vgg16.npy
./hed.py
--load
vgg16.npy
```
```
To inference (produce a heatmap at each level at out
*
.png):
To inference (produce a heatmap at each level at out
*
.png):
```
```
bash
./hed.py
--load
pretrained.model
--run
a.jpg
./hed.py
--load
pretrained.model
--run
a.jpg
```
```
To view the loss curve:
To view the loss curve:
```
```
bash
cat
train_log/hed/stat.json | jq
'.[] |
cat
train_log/hed/stat.json | jq
'.[] |
[.xentropy1,.xentropy2,.xentropy3,.xentropy4,.xentropy5,.xentropy6] |
[.xentropy1,.xentropy2,.xentropy3,.xentropy4,.xentropy5,.xentropy6] |
map(tostring) | join("\t") | .'
-r
|
\
map(tostring) | join("\t") | .'
-r
|
\
...
...
examples/HED/hed.py
View file @
6745a4e4
...
@@ -16,7 +16,7 @@ from tensorpack.tfutils.summary import *
...
@@ -16,7 +16,7 @@ from tensorpack.tfutils.summary import *
class
Model
(
ModelDesc
):
class
Model
(
ModelDesc
):
def
_get_input_vars
(
self
):
def
_get_input_vars
(
self
):
return
[
InputVar
(
tf
.
float32
,
[
None
,
None
,
None
]
+
[
3
],
'image'
),
return
[
InputVar
(
tf
.
float32
,
[
None
,
None
,
None
,
3
],
'image'
),
InputVar
(
tf
.
int32
,
[
None
,
None
,
None
],
'edgemap'
)
]
InputVar
(
tf
.
int32
,
[
None
,
None
,
None
],
'edgemap'
)
]
def
_build_graph
(
self
,
input_vars
):
def
_build_graph
(
self
,
input_vars
):
...
...
examples/README.md
View file @
6745a4e4
...
@@ -12,3 +12,4 @@ Examples with __reproducible__ and meaningful performance.
...
@@ -12,3 +12,4 @@ Examples with __reproducible__ and meaningful performance.
+
[
Inception-BN with 71% accuracy
](
Inception/inception-bn.py
)
+
[
Inception-BN with 71% accuracy
](
Inception/inception-bn.py
)
+
[
InceptionV3 with 74.5% accuracy (similar to the official code)
](
Inception/inceptionv3.py
)
+
[
InceptionV3 with 74.5% accuracy (similar to the official code)
](
Inception/inceptionv3.py
)
+
[
ResNet for Cifar10 and SVHN
](
ResNet
)
+
[
ResNet for Cifar10 and SVHN
](
ResNet
)
+
[
Holistically-Nested Edge Detection
](
HED
)
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