Skip to content

Commit

Permalink
Made all arguments mandatory (required=True) so the code won't just b…
Browse files Browse the repository at this point in the history
…reak when args are not given for load_example.py
  • Loading branch information
pauloabelha committed Oct 16, 2018
1 parent 87964c4 commit 9dfa0c8
Show file tree
Hide file tree
Showing 6 changed files with 228 additions and 6 deletions.
11 changes: 11 additions & 0 deletions .idea/hand_pose_action.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

193 changes: 193 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions load_example.py
Expand Up @@ -88,13 +88,13 @@ def _draw2dseg(ax, annot, idx1, idx2, c='r', alpha=1):

if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--root', help='Path to dataset install')
parser.add_argument('--subject', default='Subject_1')
parser.add_argument('--action_name', default='open_liquid_soap')
parser.add_argument('--seq_idx', default='1')
parser.add_argument('--frame_idx', default=0, type=int)
parser.add_argument('--root', required=True, help='Path to dataset install')
parser.add_argument('--subject', required=True, default='Subject_1')
parser.add_argument('--action_name', required=True, default='open_liquid_soap')
parser.add_argument('--seq_idx', required=True, default='1')
parser.add_argument('--frame_idx', required=True, default=0, type=int)
parser.add_argument(
'--obj', choices=['liquid_soap', 'juice_bottle', 'milk', 'salt'])
'--obj', required=True, choices=['liquid_soap', 'juice_bottle', 'milk', 'salt'])
args = parser.parse_args()
reorder_idx = np.array([
0, 1, 6, 7, 8, 2, 9, 10, 11, 3, 12, 13, 14, 4, 15, 16, 17, 5, 18, 19,
Expand Down

0 comments on commit 9dfa0c8

Please sign in to comment.