FileNotFoundError:由于Google Colab超时而没有此类文件?升级到CoLab Pro还是切换到AWS?

时间:2020-06-27 09:43:31

标签: python amazon-web-services google-colaboratory file-not-found nosuchfileexception

我正在用Colab训练模型,每次尝试使用Colab的GPU时,都会收到错误消息:

---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-79-f43ade94ee10> in <module>()
      5                     epochs = 10,
      6                     use_multiprocessing=True,
----> 7                     workers=2)

16 frames
/usr/local/lib/python3.6/dist-packages/imageio/core/request.py in _parse_uri(self, uri)
    271                 # Reading: check that the file exists (but is allowed a dir)
    272                 if not os.path.exists(fn):
--> 273                     raise FileNotFoundError("No such file: '%s'" % fn)
    274             else:
    275                 # Writing: check that the directory to write to does exist

FileNotFoundError: No such file: '/content/gdrive/My Drive/data/2017-IWT4S-CarsReId_LP-dataset/s01_l01/1_1.png'

这可能是由于Google云端硬盘超时造成的吗?

我现在正在考虑升级到Colab Pro,我想知道是否值得?还是值得转向AWS?而且,如果值得使用AWS,那么对运行时间是否有限制,就像在CoLab中一样(免费版:12小时,专业版:24小时)?

非常感谢!

0 个答案:

没有答案