Last active
June 13, 2023 01:21
-
-
Save mur6/8f58055c4e6887299633ee92941b8854 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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