Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit ac369f1

Browse files
committed
Added instructions of how to visualize tensorflow in some examples and
generalized gradients for TF
1 parent d661ec9 commit ac369f1

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

docs/DockerInstall.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ To run DIGITS smoothly, Nvidia Docker must be installed. Follow [this guide](htt
1010
To fetch the latest DIGITS's docker image, run the following:
1111

1212
```bash
13-
sudo docker pull nvidia/digits:latest
13+
docker pull nvidia/digits:latest
1414
```
1515

1616
To fetch DIGITS 6 RC, run the following:
1717

1818
```bash
19-
sudo docker pull nvidia/digits.6-rc
19+
docker pull nvidia/digits.6-rc
2020
```
2121

2222
## Running DIGITS on Nvidia Docker
2323
To run DIGITS with Nvidia Docker, use the following command:
2424

2525
```bash
26-
sudo docker run -v <path to data>:/data/ -p 5000:5000 nvidia/digits:latest
26+
nvidia-docker run -v <path to data>:/data/ -p 5000:5000 nvidia/digits:latest
2727
```
2828

2929
where `<path to data>` is where you have stored data sets or other files necessary for DIGITS to use on your system.

examples/autoencoder/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Table of Contents
77
* [Model definition (Torch)](#model-creation-torch)
88
* [Model definition (Tensorflow)](#model-creation-tensorflow)
99
* [Verification](#verification)
10+
* [Visualization for Tensorflow](#visualization-for-tensorflow)
1011

1112
## Introduction
1213

@@ -152,4 +153,10 @@ The reconstructed image, which looks similar to the normalized image:
152153

153154
![Reconstructed Image](reconstructed-image.png)
154155

156+
### Visualization for Tensorflow
155157

158+
To visualize the result of the autoencoder in Tensorflow properly, select `Image output` as `Visualization method`. Then select `HWC` as the `Data order`.
159+
160+
![Tensorflow Settings](tensorflow-settings.png)
161+
162+
Then follow the instructions for [verification](#verification)
30.7 KB
Loading

examples/binary-segmentation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The `create_images.py` script created many images we can use for testing.
105105
You may also run the command again to produce new images.
106106
To help visualize the output of the network, select the `Image` visualization method and set `Pixel Conversion` to `clip`:
107107

108-
For Tensorflow only, select `HWC` for data order
108+
**For Tensorflow only, select `HWC` for data order**
109109

110110
![select visualization](select-visualization.png)
111111

examples/regression/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,17 +160,19 @@ class UserModel(Tower):
160160

161161
@model_property
162162
def inference(self):
163+
dimension_h = self.input_shape[0]
164+
dimension_w = self.input_shape[1]
163165
const = tf.constant(0.004)
164166
normed = tf.multiply(self.x, const)
165167

166168
# The reshaping have to be done for tensorflow to get the shape right
167-
right_shape = tf.reshape(normed, shape=[-1, 50, 50])
169+
right_shape = tf.reshape(normed, shape=[-1, dimension_h, dimension_w])
168170
transposed = tf.transpose(right_shape, [0, 2, 1])
169-
squeezed = tf.reshape(transposed, shape=[-1, 2500])
171+
squeezed = tf.reshape(transposed, shape=[-1, dimension_h * dimension_w])
170172

171173
# Define weights
172174
weights = {
173-
'w1': tf.get_variable('w1', [2500, 2])
175+
'w1': tf.get_variable('w1', [dimension_h * dimension_w, 2])
174176
}
175177
biases = {
176178
'b1': tf.get_variable('b1', [2])

plugins/data/imageGradients/digitsDataPluginImageGradients/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ class DatasetForm(Form):
4747

4848
image_width = wtforms.IntegerField(
4949
u'Image Width',
50-
default=32,
50+
default=50,
5151
validators=[validators.DataRequired()]
5252
)
5353

5454
image_height = wtforms.IntegerField(
5555
u'Image Height',
56-
default=32,
56+
default=50,
5757
validators=[validators.DataRequired()]
5858
)
5959

0 commit comments

Comments
 (0)