做者|facebookresearch
编译|Flin
来源|Githubhtml
class detectron2.checkpoint.Checkpointer(model: torch.nn.modules.module.Module, save_dir: str = '', *, save_to_disk: bool = True, **checkpointables)
__init__(model:torch.nn.modules.module.Module,save_dir:str ='',*,save_to_disk:bool = True,** checkpointables )
参数:python
save(name:str,** kwargs )
参数:网络
load(path:str )
参数:机器学习
save(**extra_data)()
保存的内容 。has_checkpoint()
get_checkpoint_file()
get_all_checkpoint_files()
resume_or_load(path:str,*,resume:bool = True )
参数:函数
tag_last_checkpoint(last_filename_basename: str)
class detectron2.checkpoint.PeriodicCheckpointer(checkpointer: Any, period: int, max_iter: int = None, max_to_keep: int = None)
.step(iteration)
被调用时,若是迭代是周期的倍数或达到最大值,,它将在给定的checkpointer上执行checkpointer.save
。__init__(checkpointer: Any, period: int, max_iter: int = None, max_to_keep: int = None)
参数:学习
step(iteration: int, **kwargs)
参数:url
Checkpointer.save()
中的相同 。save(name: str, **kwargs)
参数:.net
Checkpointer.save()
中的相同.classdetectron2.checkpoint.DetectionCheckpointer(model, save_dir='', *, save_to_disk=None, **checkpointables)
与Checkpointer
相同,但可以处理Detectron和Detectron2模型库中的模型,并将转换应用于旧模型。code
原文连接:https://detectron2.readthedoc...htm
欢迎关注磐创AI博客站:
http://panchuang.net/
sklearn机器学习中文官方文档:
http://sklearn123.com/
欢迎关注磐创博客资源汇总站:
http://docs.panchuang.net/