无法从Google Colab下载.ckpt权重 [英] Failed to download .ckpt weights from Google Colab

查看:91
本文介绍了无法从Google Colab下载.ckpt权重的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Google Colab上训练了Tensorflow模型,并将该模型保存为".ckpt"格式. 我想下载模型,所以尝试这样做:

I've trained a Tensorflow model on Google Colab, and saved that model in ".ckpt" format. I want to download the model so I tried to do this:

from google.colab import files
files.download('/content/model.ckpt.index')
files.download('/content/model.ckpt.meta')
files.download('/content/model.ckpt.data-00000-of-00001')

我能够获取元文件和索引文件.但是,数据文件给我以下错误:

I was able to get meta and index files. However, data file is giving me the following error:

"MessageError:错误:无法下载:Service Worker响应 错误"

"MessageError: Error: Failed to download: Service Worker Response Error"

任何人都可以告诉我如何解决这个问题.

Could anybody tell me how should I solve this problem.

推荐答案

Google Colab不允许下载大文件(不确定确切限制).可能的解决方案是将文件拆分为较小的文件,或者可以使用github推送文件,然后下载到本地计算机.

Google Colab doesn't allow downloading files of large sizes (not sure about the exact limit). Possible solutions could be to either split the file into smaller files or can use github to push your files and then download to your local machine.

这篇关于无法从Google Colab下载.ckpt权重的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆