Skip to content

Commit

Permalink
--labels required=True
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Feb 1, 2019
1 parent 4346c6b commit f1526d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/bbox_detection/labelme2voc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def main():
)
parser.add_argument('input_dir', help='input annotated directory')
parser.add_argument('output_dir', help='output dataset directory')
parser.add_argument('--labels', help='labels file')
parser.add_argument('--labels', help='labels file', required=True)
args = parser.parse_args()

if osp.exists(args.output_dir):
Expand Down
2 changes: 1 addition & 1 deletion examples/instance_segmentation/labelme2coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def main():
)
parser.add_argument('input_dir', help='input annotated directory')
parser.add_argument('output_dir', help='output dataset directory')
parser.add_argument('--labels', help='labels file')
parser.add_argument('--labels', help='labels file', required=True)
args = parser.parse_args()

if osp.exists(args.output_dir):
Expand Down
2 changes: 1 addition & 1 deletion examples/instance_segmentation/labelme2voc.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main():
)
parser.add_argument('input_dir', help='input annotated directory')
parser.add_argument('output_dir', help='output dataset directory')
parser.add_argument('--labels', help='labels file')
parser.add_argument('--labels', help='labels file', required=True)
args = parser.parse_args()

if osp.exists(args.output_dir):
Expand Down
2 changes: 1 addition & 1 deletion examples/semantic_segmentation/labelme2voc.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main():
)
parser.add_argument('input_dir', help='input annotated directory')
parser.add_argument('output_dir', help='output dataset directory')
parser.add_argument('--labels', help='labels file')
parser.add_argument('--labels', help='labels file', required=True)
args = parser.parse_args()

if osp.exists(args.output_dir):
Expand Down

1 comment on commit f1526d7

@saurabh0105
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the input dir

Please sign in to comment.