Commit 51db9d83 authored by Yuxin Wu's avatar Yuxin Wu

update docs; fix #975

parent 52d2677f
...@@ -90,8 +90,16 @@ Tensorpack & `tf.layers` only provide a subset of most common models. ...@@ -90,8 +90,16 @@ Tensorpack & `tf.layers` only provide a subset of most common models.
However you can construct the graph using whatever library you feel comfortable with. However you can construct the graph using whatever library you feel comfortable with.
Functions in slim/tflearn/tensorlayer are just symbolic function wrappers, calling them is nothing different Functions in slim/tflearn/tensorlayer are just symbolic function wrappers, calling them is nothing different
from calling `tf.add`. You may need to be careful how regularizations/BN updates are supposed from calling `tf.add`. You may need to be careful on some issues:
to be handled in those libraries, though. 1. Regularizations may be handled differently:
in tensorpack, users need to add the regularization losses to the total cost manually.
1. BN updates may be handled differently: in tensorpack,
the ops from the `tf.GraphKeys.UPDATE_OPS` collection will be run
automatically every step.
1. How training/testing mode is supported in those libraries: in tensorpack's
tower function, you can get a boolean `is_training` from
[here](trainer.html#what-you-can-do-inside-tower-function)
and use it however you like (e.g. create different codepath condition on this value).
It is a bit different to use sonnet/Keras. It is a bit different to use sonnet/Keras.
sonnet/Keras manages the variable scope by their own model classes, and calling their symbolic functions sonnet/Keras manages the variable scope by their own model classes, and calling their symbolic functions
......
...@@ -20,7 +20,7 @@ produce a 4x resolution image using different loss functions. ...@@ -20,7 +20,7 @@ produce a 4x resolution image using different loss functions.
```bash ```bash
wget http://images.cocodataset.org/zips/train2017.zip wget http://images.cocodataset.org/zips/train2017.zip
wget http://models.tensorpack.com/caffe/vgg19.npz wget http://models.tensorpack.com/Caffe-Converted/vgg19.npz
``` ```
2. Train an EnhanceNet-PAT using: 2. Train an EnhanceNet-PAT using:
......
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