Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fixing some more broken links before v0.10 release (#6449)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeep-krishnamurthy authored and piiswrong committed May 26, 2017
1 parent f46a0bc commit 67508af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/how_to/multi_devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ When using a large number of GPUs, e.g. >=4, we suggest using `device` for bette
### How to Launch a Job

> To use distributed training, we need to compile with `USE_DIST_KVSTORE=1`
> (see [MXNet installation guide](http://mxnet.io/get_started/setup.html) for more options).
> (see [MXNet installation guide](http://mxnet.io/get_started/install.html) for more options).
Launching a distributed job is a bit different from running on a single
machine. MXNet provides
Expand Down
15 changes: 7 additions & 8 deletions docs/tutorials/basic/data.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Iterators - Loading data
In this tutorial we focus on how to feed data into a training or inference program.
In this tutorial we focus on how to feed data into a training or inference program.
Most training and inference modules in MXNet accept data iterators,
which simplifies this procedure, especially when reading large datasets.
which simplifies this procedure, especially when reading large datasets.
Here we discuss the API conventions and several provided iterators.

## MXNet Data Iterator
Expand Down Expand Up @@ -62,7 +62,7 @@ for batch in data_iter:
```

## Custom Iterator
When the built-in iterators do not suit your application needs,
When the built-in iterators do not suit your application needs,
you can create your own custom data iterator.

An iterator in _MXNet_ should
Expand Down Expand Up @@ -167,7 +167,7 @@ Record IO is a file format used by MXNet for data IO.
It compactly packs the data for efficient read and writes from distributed file system like Hadoop HDFS and AWS S3.
You can learn more about the design of `RecordIO` [here](http://mxnet.io/architecture/note_data_loading.html).

MXNet provides [__`MXRecordIO`__](http://mxnet.io/api/python/io.html#mxnet.recordio.MXRecordIO)
MXNet provides [__`MXRecordIO`__](http://mxnet.io/api/python/io.html#mxnet.recordio.MXRecordIO)
and [__`MXIndexedRecordIO`__](http://mxnet.io/api/python/io.html#mxnet.recordio.MXIndexedRecordIO)
for sequential access of data and random access of the data.

Expand Down Expand Up @@ -351,7 +351,7 @@ tar.close()
os.chdir('../')
```

Let's take a look at the data. As you can see, under the [root folder](./data/101_ObjectCategories) every category has a [subfolder](./data/101_ObjectCategories/yin_yang).
Let's take a look at the data. As you can see, under the root folder (./data/101_ObjectCategories) every category has a subfolder(./data/101_ObjectCategories/yin_yang).

Now let's convert them into record io format using the `im2rec.py` utility script.
First we need to make a list that contains all the image files and their categories:
Expand All @@ -360,7 +360,7 @@ First we need to make a list that contains all the image files and their categor
os.system('python %s/tools/im2rec.py --list=1 --recursive=1 --shuffle=1 --test-ratio=0.2 data/caltech data/101_ObjectCategories'%MXNET_HOME)
```

The resulting [list file](./data/caltech_train.lst) is in the format `index\t(one or more label)\tpath`. In this case there is only one label for each image but you can modify the list to add in more for multi label training.
The resulting list file (./data/caltech_train.lst) is in the format `index\t(one or more label)\tpath`. In this case there is only one label for each image but you can modify the list to add in more for multi label training.

Then we can use this list to create our record io file:

Expand All @@ -369,7 +369,7 @@ Then we can use this list to create our record io file:
os.system("python %s/tools/im2rec.py --num-thread=4 --pass-through=1 data/caltech data/101_ObjectCategories"%MXNET_HOME)
```

The record io files are now saved at [here](./data)
The record io files are now saved at here (./data)

#### Using ImageRecordIter
[__`ImageRecordIter`__](http://mxnet.io/api/python/io.html#mxnet.io.ImageRecordIter) can be used for loading image data saved in record io format. To use ImageRecordIter, simply create an instance by loading your record file:
Expand Down Expand Up @@ -410,4 +410,3 @@ plt.show()
```

<!-- INSERT SOURCE DOWNLOAD BUTTONS -->

0 comments on commit 67508af

Please sign in to comment.