Skip to content

Instantly share code, notes, and snippets.

@mur6
Last active June 13, 2023 01:21
Show Gist options
  • Save mur6/8f58055c4e6887299633ee92941b8854 to your computer and use it in GitHub Desktop.
Save mur6/8f58055c4e6887299633ee92941b8854 to your computer and use it in GitHub Desktop.
from matplotlib import pyplot as plt
fig, ax = plt.subplots()
ax.imshow(c, cmap="gray")
plt.show()
if __name__ == '__main__':
main()
###
parser = argparse.ArgumentParser()
parser.add_argument(
"--json_dir", type=str, help="Please input the path of the labelme json files."
)
parser.add_argument(
"--val_size",
type=float,
nargs="?",
default=None,
help="Please input the validation dataset size, for example 0.1 ",
)
parser.add_argument(
"--json_name",
type=str,
nargs="?",
default=None,
help="If you put json name, it would convert only one json file to YOLO.",
)
args = parser.parse_args(sys.argv[1:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment