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/06/27 21:26:49 UTC
[GitHub] szha closed pull request #11425: [MXNET-601] Fix caffe converter
test
szha closed pull request #11425: [MXNET-601] Fix caffe converter test
URL: https://github.com/apache/incubator-mxnet/pull/11425
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/example/ssd/tools/caffe_converter/compare_layers.py b/example/ssd/tools/caffe_converter/compare_layers.py
index 12568ed2060..9509027797a 100644
--- a/example/ssd/tools/caffe_converter/compare_layers.py
+++ b/example/ssd/tools/caffe_converter/compare_layers.py
@@ -339,7 +339,8 @@ def main():
parser = argparse.ArgumentParser(
description='Tool for testing caffe to mxnet conversion layer by layer')
parser.add_argument('--image_url', type=str,
- default='http://writm.com/wp-content/uploads/2016/08/Cat-hd-wallpapers.jpg',
+ default='https://github.com/dmlc/web-data/raw/master/mxnet/doc/'\
+ 'tutorials/python/predict_image/cat.jpg',
help='input image to test inference, can be either file path or url')
parser.add_argument('--caffe_prototxt_path', type=str,
default='./model.prototxt',
diff --git a/tools/caffe_converter/compare_layers.py b/tools/caffe_converter/compare_layers.py
index 6cb82e8c2c8..ed73ee991c8 100644
--- a/tools/caffe_converter/compare_layers.py
+++ b/tools/caffe_converter/compare_layers.py
@@ -341,7 +341,8 @@ def main():
parser = argparse.ArgumentParser(
description='Tool for testing caffe to mxnet conversion layer by layer')
parser.add_argument('--image_url', type=str,
- default='http://writm.com/wp-content/uploads/2016/08/Cat-hd-wallpapers.jpg',
+ default='https://github.com/dmlc/web-data/raw/master/mxnet/doc/'\
+ 'tutorials/python/predict_image/cat.jpg',
help='input image to test inference, can be either file path or url')
parser.add_argument('--caffe_prototxt_path', type=str,
default='./model.prototxt',
diff --git a/tools/caffe_converter/test_converter.py b/tools/caffe_converter/test_converter.py
index 6bc5d56348d..7b47278f51f 100644
--- a/tools/caffe_converter/test_converter.py
+++ b/tools/caffe_converter/test_converter.py
@@ -84,7 +84,8 @@ def main():
parser = argparse.ArgumentParser(description='Test Caffe converter')
parser.add_argument('--cpu', action='store_true', help='use cpu?')
parser.add_argument('--image_url', type=str,
- default='http://writm.com/wp-content/uploads/2016/08/Cat-hd-wallpapers.jpg',
+ default='https://github.com/dmlc/web-data/raw/master/mxnet/doc/'\
+ 'tutorials/python/predict_image/cat.jpg',
help='input image to test inference, can be either file path or url')
args = parser.parse_args()
if args.cpu:
----------------------------------------------------------------
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