You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ns...@apache.org on 2018/04/27 21:50:57 UTC

[incubator-mxnet] branch v1.2.0 updated: [MXNET-337] Change Model url to S3 (#10722)

This is an automated email from the ASF dual-hosted git repository.

nswamy pushed a commit to branch v1.2.0
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/v1.2.0 by this push:
     new 182801a  [MXNET-337] Change Model url to S3 (#10722)
182801a is described below

commit 182801ab4f0bffdf51f8c3e44fb05210cc85a657
Author: Lanking <la...@live.com>
AuthorDate: Fri Apr 27 14:50:51 2018 -0700

    [MXNET-337] Change Model url to S3 (#10722)
    
    * Fixed s3 links
---
 .../infer/imageclassifier/ImageClassifierExampleSuite.scala  | 12 ++++++------
 .../infer/objectdetector/ObjectDetectorExampleSuite.scala    |  3 +--
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/scala-package/examples/src/test/scala/org/apache/mxnetexamples/infer/imageclassifier/ImageClassifierExampleSuite.scala b/scala-package/examples/src/test/scala/org/apache/mxnetexamples/infer/imageclassifier/ImageClassifierExampleSuite.scala
index e3bfdcd..929e658 100644
--- a/scala-package/examples/src/test/scala/org/apache/mxnetexamples/infer/imageclassifier/ImageClassifierExampleSuite.scala
+++ b/scala-package/examples/src/test/scala/org/apache/mxnetexamples/infer/imageclassifier/ImageClassifierExampleSuite.scala
@@ -38,14 +38,14 @@ class ImageClassifierExampleSuite extends FunSuite with BeforeAndAfterAll {
     val tempDirPath = System.getProperty("java.io.tmpdir")
     logger.info("tempDirPath: %s".format(tempDirPath))
 
-    Process("wget http://data.mxnet.io/models/imagenet/resnet/18-layers/resnet-18-symbol.json " +
-      "-P " + tempDirPath + "/resnet18/ -q") !
+    Process("wget https://s3.us-east-2.amazonaws.com/scala-infer-models" +
+            "/resnet-18/resnet-18-symbol.json " + "-P " + tempDirPath + "/resnet18/ -q") !
 
-    Process("wget http://data.mxnet.io/models/imagenet/resnet/18-layers/resnet-18-0000.params " +
-      "-P " + tempDirPath + "/resnet18/ -q") !
+    Process("wget https://s3.us-east-2.amazonaws.com/scala-infer-models"
+            + "/resnet-18/resnet-18-0000.params " + "-P " + tempDirPath + "/resnet18/ -q") !
 
-    Process("wget http://data.mxnet.io/models/imagenet/resnet/synset.txt -P " + tempDirPath +
-      "/resnet18/ -q") !
+    Process("wget https://s3.us-east-2.amazonaws.com/scala-infer-models" +
+            "/resnet-18/synset.txt -P " + tempDirPath + "/resnet18/ -q") !
 
     Process("wget " +
       "https://s3.amazonaws.com/model-server/inputs/Pug-Cookie.jpg " +
diff --git a/scala-package/examples/src/test/scala/org/apache/mxnetexamples/infer/objectdetector/ObjectDetectorExampleSuite.scala b/scala-package/examples/src/test/scala/org/apache/mxnetexamples/infer/objectdetector/ObjectDetectorExampleSuite.scala
index aebb2da..1da3a48 100644
--- a/scala-package/examples/src/test/scala/org/apache/mxnetexamples/infer/objectdetector/ObjectDetectorExampleSuite.scala
+++ b/scala-package/examples/src/test/scala/org/apache/mxnetexamples/infer/objectdetector/ObjectDetectorExampleSuite.scala
@@ -35,7 +35,6 @@ class ObjectDetectorExampleSuite extends FunSuite with BeforeAndAfterAll {
     logger.info("tempDirPath: %s".format(tempDirPath))
 
     val modelBase = "https://s3.amazonaws.com/model-server/models/resnet50_ssd/"
-    val synsetBase = "https://raw.githubusercontent.com/awslabs/mxnet-model-server/master/examples/"
     val imageBase = "https://s3.amazonaws.com/model-server/inputs/"
 
     Process("wget " + modelBase + "resnet50_ssd_model-symbol.json " + "-P " +
@@ -46,7 +45,7 @@ class ObjectDetectorExampleSuite extends FunSuite with BeforeAndAfterAll {
       "-P " + tempDirPath + "/resnetssd/ -q") !
 
 
-    Process("wget  " + synsetBase + "ssd/synset.txt " + "-P" +
+    Process("wget  " + modelBase + "synset.txt " + "-P" +
       tempDirPath + "/resnetssd/ -q") !
 
     Process("wget " +

-- 
To stop receiving notification emails like this one, please contact
nswamy@apache.org.