Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare tool works with just images and labels #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions robosat/tools/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def add_parser(subparser):
parser.add_argument("out", type=str, help="directory to save visualizations to")
parser.add_argument("images", type=str, help="directory to read slippy map images from")
parser.add_argument("labels", type=str, help="directory to read slippy map labels from")
parser.add_argument("masks", type=str, nargs="+", help="slippy map directories to read masks from")
parser.add_argument("masks", type=str, nargs="*", help="slippy map directories to read masks from")
parser.add_argument("--minimum", type=float, default=0.0, help="minimum percentage of mask not background")
parser.add_argument("--maximum", type=float, default=1.0, help="maximum percentage of mask not background")

Expand Down Expand Up @@ -48,7 +48,7 @@ def main(args):
if percentage >= args.minimum and percentage <= args.maximum:
keep = True

if not keep:
if args.masks and not keep:
continue

width, height = image.size
Expand Down