You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2018/06/06 21:31:56 UTC

[incubator-mxnet] branch master updated: minor fixes to example/ssd (#11138)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 3f30b44  minor fixes to example/ssd (#11138)
3f30b44 is described below

commit 3f30b4423646f2fe16bd5fb1234b6f9d0d4e52fc
Author: Pedro Larroy <92...@users.noreply.github.com>
AuthorDate: Wed Jun 6 23:31:40 2018 +0200

    minor fixes to example/ssd (#11138)
---
 example/ssd/tools/prepare_dataset.py | 3 +++
 example/ssd/tools/prepare_pascal.sh  | 4 ++--
 example/ssd/train.py                 | 6 ++++--
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/example/ssd/tools/prepare_dataset.py b/example/ssd/tools/prepare_dataset.py
old mode 100644
new mode 100755
index 55c95be..c031f04
--- a/example/ssd/tools/prepare_dataset.py
+++ b/example/ssd/tools/prepare_dataset.py
@@ -1,3 +1,6 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
 # 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
diff --git a/example/ssd/tools/prepare_pascal.sh b/example/ssd/tools/prepare_pascal.sh
old mode 100644
new mode 100755
index b55a2a5..97eea26
--- a/example/ssd/tools/prepare_pascal.sh
+++ b/example/ssd/tools/prepare_pascal.sh
@@ -18,5 +18,5 @@
 # under the License.
 
 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-python $DIR/prepare_dataset.py --dataset pascal --year 2007,2012 --set trainval --target $DIR/../data/train.lst
-python $DIR/prepare_dataset.py --dataset pascal --year 2007 --set test --target $DIR/../data/val.lst --no-shuffle
+$DIR/prepare_dataset.py --dataset pascal --year 2007,2012 --set trainval --target $DIR/../data/train.lst
+$DIR/prepare_dataset.py --dataset pascal --year 2007 --set test --target $DIR/../data/val.lst --no-shuffle
diff --git a/example/ssd/train.py b/example/ssd/train.py
old mode 100644
new mode 100755
index 1ad70bd..09c618a
--- a/example/ssd/train.py
+++ b/example/ssd/train.py
@@ -1,3 +1,6 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
 # 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
@@ -16,12 +19,11 @@
 # under the License.
 
 import argparse
-import tools.find_mxnet
 import mxnet as mx
 import os
-import sys
 from train.train_net import train_net
 
+
 def parse_args():
     parser = argparse.ArgumentParser(description='Train a Single-shot detection network')
     parser.add_argument('--train-path', dest='train_path', help='train record to use',

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