download_ckpt.py 文件源码

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

项目:tf-image-segmentation 作者: VittalP 项目源码 文件源码
def download_ckpt(url):
    fname = wget.download(url)
    with tarfile.open(fname) as tar:
        tar.extractall()
        ckpt_name = tar.getnames()[0]

    if not os.path.exists(FLAGS.checkpoints_dir):
        os.makedirs(FLAGS.checkpoints_dir)

    shutil.move(ckpt_name, FLAGS.checkpoints_dir)
    os.remove(fname)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号