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
2d5984db
Commit
2d5984db
authored
Mar 10, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename & update readme
parent
062790c4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+1
-1
examples/ResNet/README.md
examples/ResNet/README.md
+1
-1
examples/SimilarityLearning/mnist-embeddings.py
examples/SimilarityLearning/mnist-embeddings.py
+1
-1
tensorpack/tfutils/symbolic_functions.py
tensorpack/tfutils/symbolic_functions.py
+1
-1
No files found.
README.md
View file @
2d5984db
...
...
@@ -4,7 +4,7 @@ Neural Network Toolbox on TensorFlow
[

](https://travis-ci.org/ppwwyyxx/tensorpack)
[

](http://tensorpack.readthedocs.io/en/latest/index.html)
Tutorials are not f
ully f
inished. See some
[
examples
](
examples
)
to learn about the framework:
Tutorials are not finished. See some
[
examples
](
examples
)
to learn about the framework:
### Vision:
+
[
DoReFa-Net: train binary / low-bitwidth CNN on ImageNet
](
examples/DoReFa-Net
)
...
...
examples/ResNet/README.md
View file @
2d5984db
...
...
@@ -16,7 +16,7 @@ To train, just run:
```
bash
./imagenet-resnet.py
--data
/path/to/original/ILSVRC
--gpu
0,1,2,3
-d
18
```
The speed is 1860 samples/s on 4 TitanX Pascal, and 1160
it/s on 4 old TitanX, provided that
your data is fast
The speed is 1860 samples/s on 4 TitanX Pascal, and 1160
samples/s on 4 old TitanX, if
your data is fast
enough. See the
[
tutorial
](
http://tensorpack.readthedocs.io/en/latest/tutorial/efficient-dataflow.html
)
on how to speed up your data.

...
...
examples/SimilarityLearning/mnist-embeddings.py
View file @
2d5984db
...
...
@@ -98,7 +98,7 @@ class CosineModel(SiameseModel):
with
tf
.
variable_scope
(
tf
.
get_variable_scope
(),
reuse
=
True
):
tf
.
identity
(
self
.
embed
(
inputs
[
0
]),
name
=
"emb"
)
cost
=
symbf
.
cosine_loss
(
x
,
y
,
label
,
scope
=
"loss"
)
cost
=
symbf
.
siamese_
cosine_loss
(
x
,
y
,
label
,
scope
=
"loss"
)
self
.
cost
=
tf
.
identity
(
cost
,
name
=
"cost"
)
add_moving_summary
(
self
.
cost
)
...
...
tensorpack/tfutils/symbolic_functions.py
View file @
2d5984db
...
...
@@ -257,7 +257,7 @@ def contrastive_loss(left, right, y, margin, extra=False, scope="constrastive_lo
return
loss
def
cosine_loss
(
left
,
right
,
y
,
scope
=
"cosine_loss"
):
def
siamese_
cosine_loss
(
left
,
right
,
y
,
scope
=
"cosine_loss"
):
r"""Loss for Siamese networks (cosine version).
Same as :func:`contrastive_loss` but with different similarity measurement.
...
...
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