做者|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/