You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by cm...@apache.org on 2019/08/09 19:13:26 UTC
[incubator-mxnet] 02/04: add script and .gitignore
This is an automated email from the ASF dual-hosted git repository.
cmeier pushed a commit to branch clojure-package-remove-source-images
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
commit ab8fbb107cf00fe77b5f0bda231675b231d45d58
Author: gigasquid <cm...@gigasquidsoftware.com>
AuthorDate: Fri Aug 9 14:49:51 2019 -0400
add script and .gitignore
---
contrib/clojure-package/.gitignore | 1 +
contrib/clojure-package/scripts/get_test_images.sh | 33 ++++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/contrib/clojure-package/.gitignore b/contrib/clojure-package/.gitignore
index 884834e..c304e79 100644
--- a/contrib/clojure-package/.gitignore
+++ b/contrib/clojure-package/.gitignore
@@ -46,5 +46,6 @@ test/test-symbol.clj
test/test-symbol-random.clj
test/test-symbol-random-api.clj
test/test-symbol-api.clj
+test/test-images/*
src/org/apache/clojure_mxnet/gen/*
diff --git a/contrib/clojure-package/scripts/get_test_images.sh b/contrib/clojure-package/scripts/get_test_images.sh
new file mode 100755
index 0000000..e850948
--- /dev/null
+++ b/contrib/clojure-package/scripts/get_test_images.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+set -evx
+
+MXNET_ROOT=$(cd "$(dirname $0)/.."; pwd)
+
+image_path=$MXNET_ROOT/test/test-images
+
+if [ ! -d "$image_path" ]; then
+ mkdir -p "$image_path"
+fi
+
+if [ ! -f "$image_path/kitten.jpg" ]; then
+ wget https://s3.us-east-2.amazonaws.com/mxnet-scala/scala-example-ci/resnet152/kitten.jpg -P $image_path
+ wget https://s3.amazonaws.com/model-server/inputs/Pug-Cookie.jpg -P $image_path
+fi