NN Archive CLI
最后更新
luxonis_ml.nn_archive.__main__函数
extract
Python
1def extract(path: Annotated[Path, Parameter(validator=validators.Path(exists=True))], destination: Annotated[Path | None, Parameter(name='--dest', alias='-d')] = None):path(Annotated[Path, Parameter(validator=validators.Path(exists=True))]): NN 存档的路径。destination(Annotated[Path | None, Parameter(name='--dest', alias='-d')]): 提取存档的路径。如果未提供,存档将提取到当前工作目录。
inspect
Python
1def inspect(path: Annotated[Path, Parameter(validator=validators.Path(exists=True))], *, inputs: Annotated[bool, Parameter(alias='-i', negative=())] = False, metadata: Annotated[bool, Parameter(alias='-m', negative=())] = False, outputs: Annotated[bool, Parameter(alias='-o', negative=())] = False, heads: Annotated[bool, Parameter(alias='-h', negative=())] = False, buildinfo: Annotated[bool, Parameter(alias='-b', negative=())] = False):path(Annotated[Path, Parameter(validator=validators.Path(exists=True))]): NN 存档的路径。inputs(Annotated[bool, Parameter(alias='-i', negative=())]): 打印输入信息。metadata(Annotated[bool, Parameter(alias='-m', negative=())]): 打印元数据。outputs(Annotated[bool, Parameter(alias='-o', negative=())]): 打印输出信息。heads(Annotated[bool, Parameter(alias='-h', negative=())]): 打印头部信息。buildinfo(Annotated[bool, Parameter(alias='-b', negative=())]): 如果可用,打印构建信息。