Skip to content

Commit

Permalink
Download MXNet MNIST data from FTP in integration (intel-analytics#2564)
Browse files Browse the repository at this point in the history
* download from ftp

* fix

* fix ftp

* tempoary remove

* revert

* fix path

* update
  • Loading branch information
hkvision committed Jul 21, 2020
1 parent 66eb2f5 commit c4c5281
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/orca/dev/example/run-example-test-ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ time4=$((now-start))

echo "#5 Start mxnet lenet example"
start=$(date "+%s")

# get_mnist_iterator in MXNet requires the data to be placed in the `data` folder of the running directory.
# The running directory of integration test is ${ANALYTICS_ZOO_ROOT}.
if [ -f ${ANALYTICS_ZOO_ROOT}/data/mnist.zip ]
then
echo "mnist.zip already exists"
else
wget -nv $FTP_URI/analytics-zoo-data/mnist.zip -P ${ANALYTICS_ZOO_ROOT}/data
fi
unzip -q ${ANALYTICS_ZOO_ROOT}/data/mnist.zip -d ${ANALYTICS_ZOO_ROOT}/data

python ${ANALYTICS_ZOO_ROOT}/pyzoo/zoo/examples/orca/learn/mxnet/lenet_mnist.py -e 1 -b 256
now=$(date "+%s")
time5=$((now-start))
Expand Down

0 comments on commit c4c5281

Please sign in to comment.