kwcoco.cli.coco_grab module¶
- class kwcoco.cli.coco_grab.CocoGrabCLI[source]¶
Bases:
object
- name = 'grab'¶
- class CLIConfig(data=None, default=None, cmdline=False)[source]¶
Bases:
Config
Grab standard datasets.
Example
kwcoco grab cifar10 camvid
- Parameters:
data (object) – filepath, dict, or None
default (dict | None) – overrides the class defaults
cmdline (bool | List[str] | str | dict) – If False, then no command line information is used. If True, then sys.argv is parsed and used. If a list of strings that used instead of sys.argv. If a string, then that is parsed using shlex and used instead
of sys.argv.
If a dictionary grants fine grained controls over the args passed to
Config._read_argv()
. Can contain:strict (bool): defaults to False
argv (List[str]): defaults to None
special_options (bool): defaults to True
autocomplete (bool): defaults to False
Defaults to False.
Note
Avoid setting
cmdline
parameter here. Instead prefer to use thecli
classmethod to create a command line aware config instance..- default = {'dpath': <Path(Path('/home/docs/.cache/kwcoco/data'))>, 'names': <Value([])>}¶
- kwcoco.cli.coco_grab._CLI¶
alias of
CocoGrabCLI