model.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:MSgothicPolice 作者: ysdyt 项目源码 文件源码
def _build_callbacks(self):
        """Build callback objects.

        Returns:
            A list containing the following callback objects:
                - TensorBoard
                - ModelCheckpoint
        """

        tensorboard_path = os.path.join(self.checkpoints_path, 'tensorboard')
        tensorboard = TensorBoard(log_dir=tensorboard_path)

        checkpoint_path = os.path.join(self.checkpoints_path, self.checkpoint_file_format)
        checkpointer = ModelCheckpoint(filepath=checkpoint_path, verbose=1, save_best_only=self.save_best_only)

        return [tensorboard, checkpointer]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号