Skip to content

Commit

Permalink
Bugfix (#247)
Browse files Browse the repository at this point in the history
* Fixed has no attribute 'json'

* Fixed has no num_thread
  • Loading branch information
xiaosongshine authored and RogerChern committed Oct 17, 2019
1 parent 6cb3a07 commit 67c79f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions unittest/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_empty_v_loader(self):
label_name=label_name,
batch_size=1,
shuffle=True,
num_thread=1,
num_worker=1,
kv=mx.kvstore.create(pKv.kvstore)
)
with self.assertRaises(StopIteration):
Expand All @@ -43,7 +43,7 @@ def test_empty_h_loader(self):
label_name=label_name,
batch_size=1,
shuffle=True,
num_thread=1,
num_worker=1,
kv=mx.kvstore.create(pKv.kvstore)
)
with self.assertRaises(StopIteration):
Expand All @@ -63,7 +63,7 @@ def test_record_num(self):
label_name=label_name,
batch_size=batch_size,
shuffle=True,
num_thread=1,
num_worker=1,
kv=mx.kvstore.create(pKv.kvstore)
)

Expand Down
4 changes: 2 additions & 2 deletions utils/json_to_roidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
def parse_argument():
parser = argparse.ArgumentParser("Convert json gt to roidb")
parser.add_argument("--json", type=str, required=True)
parser.parse_args()
return parser.json
args = parser.parse_args()
return args.json


def json_to_roidb(json_path):
Expand Down

0 comments on commit 67c79f5

Please sign in to comment.