|
|
|
@ -54,8 +54,9 @@ TASK2METRIC = { |
|
|
|
|
"obb": "metrics/mAP50-95(B)", |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ARGV = sys.argv or ["", ""] # sometimes sys.argv = [] |
|
|
|
|
CLI_HELP_MSG = f""" |
|
|
|
|
Arguments received: {str(['yolo'] + sys.argv[1:])}. Ultralytics 'yolo' commands use the following syntax: |
|
|
|
|
Arguments received: {str(['yolo'] + ARGV[1:])}. Ultralytics 'yolo' commands use the following syntax: |
|
|
|
|
|
|
|
|
|
yolo TASK MODE ARGS |
|
|
|
|
|
|
|
|
@ -93,7 +94,7 @@ CLI_HELP_MSG = f""" |
|
|
|
|
""" |
|
|
|
|
|
|
|
|
|
# Define keys for arg type checks |
|
|
|
|
CFG_FLOAT_KEYS = {"warmup_epochs", "box", "cls", "dfl", "degrees", "shear", "time"} |
|
|
|
|
CFG_FLOAT_KEYS = {"warmup_epochs", "box", "cls", "dfl", "degrees", "shear", "time", "workspace"} |
|
|
|
|
CFG_FRACTION_KEYS = { |
|
|
|
|
"dropout", |
|
|
|
|
"iou", |
|
|
|
@ -131,7 +132,6 @@ CFG_INT_KEYS = { |
|
|
|
|
"max_det", |
|
|
|
|
"vid_stride", |
|
|
|
|
"line_width", |
|
|
|
|
"workspace", |
|
|
|
|
"nbs", |
|
|
|
|
"save_period", |
|
|
|
|
} |
|
|
|
@ -452,7 +452,7 @@ def entrypoint(debug=""): |
|
|
|
|
It uses the package's default cfg and initializes it using the passed overrides. |
|
|
|
|
Then it calls the CLI function with the composed cfg |
|
|
|
|
""" |
|
|
|
|
args = (debug.split(" ") if debug else sys.argv)[1:] |
|
|
|
|
args = (debug.split(" ") if debug else ARGV)[1:] |
|
|
|
|
if not args: # no arguments passed |
|
|
|
|
LOGGER.info(CLI_HELP_MSG) |
|
|
|
|
return |
|
|
|
|