scene-sketch-seg / vpt /launch.py
ahmedbrs's picture
first
254fdf2
raw
history blame contribute delete
641 Bytes
#!/usr/bin/env python3
"""
launch helper functions
"""
import argparse
def default_argument_parser():
"""
create a simple parser to wrap around config file
"""
parser = argparse.ArgumentParser(description="visual-prompt")
parser.add_argument(
"--config-file", default="vpt/configs/prompt/cub.yaml", metavar="FILE", help="path to config file")
parser.add_argument(
"--train-type", default="", help="training types")
parser.add_argument(
"opts",
help="Modify config options using the command-line",
default=None,
nargs=argparse.REMAINDER,
)
return parser