You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/04/23 18:30:24 UTC
[GitHub] piiswrong closed pull request #10654: fix SSDClassifierExample
piiswrong closed pull request #10654: fix SSDClassifierExample
URL: https://github.com/apache/incubator-mxnet/pull/10654
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/scala-package/examples/src/main/scala/org/apache/mxnetexamples/infer/objectdetector/README.md b/scala-package/examples/src/main/scala/org/apache/mxnetexamples/infer/objectdetector/README.md
index bc7f337f1b7..d18655dc507 100644
--- a/scala-package/examples/src/main/scala/org/apache/mxnetexamples/infer/objectdetector/README.md
+++ b/scala-package/examples/src/main/scala/org/apache/mxnetexamples/infer/objectdetector/README.md
@@ -79,7 +79,7 @@ After the previous steps, you should be able to run the code using the following
From the `scala-package/examples/scripts/inferexample/objectdetector/` folder run:
```bash
-./run_ssd_example.sh ../model/resnet50_ssd_model ../image/dog.jpg ../image
+./run_ssd_example.sh ../models/resnet50_ssd_model ../images/dog.jpg ../images
```
**Notes**:
@@ -113,4 +113,4 @@ This documentation used the model and inference setup guide from the [MXNet Mode
Check out the following related tutorials and examples for the Infer API:
-* [Image Classification with the MXNet Scala Infer API](../imageclassifier/README.md)
\ No newline at end of file
+* [Image Classification with the MXNet Scala Infer API](../imageclassifier/README.md)
diff --git a/scala-package/examples/src/main/scala/org/apache/mxnetexamples/infer/objectdetector/SSDClassifierExample.scala b/scala-package/examples/src/main/scala/org/apache/mxnetexamples/infer/objectdetector/SSDClassifierExample.scala
index 4d9bc2491dd..f4f7f589789 100644
--- a/scala-package/examples/src/main/scala/org/apache/mxnetexamples/infer/objectdetector/SSDClassifierExample.scala
+++ b/scala-package/examples/src/main/scala/org/apache/mxnetexamples/infer/objectdetector/SSDClassifierExample.scala
@@ -108,10 +108,9 @@ object SSDClassifierExample {
val inst = new SSDClassifierExample
val parser : CmdLineParser = new CmdLineParser(inst)
parser.parseArgument(args.toList.asJava)
- val baseDir = System.getProperty("user.dir")
- val mdprefixDir = baseDir + inst.modelPathPrefix
- val imgPath = baseDir + inst.inputImagePath
- val imgDir = baseDir + inst.inputImageDir
+ val mdprefixDir = inst.modelPathPrefix
+ val imgPath = inst.inputImagePath
+ val imgDir = inst.inputImageDir
if (!checkExist(Array(mdprefixDir + "-symbol.json", imgDir, imgPath))) {
logger.error("Model or input image path does not exist")
sys.exit(1)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services