Colab:将运行时更改为本地后无法运行任何单元格

时间:2021-05-16 21:25:53

标签: tensorflow jupyter-notebook google-colaboratory tensorflow2.0 tf.keras

我是 Tensorflow 的新手,一周前才开始使用 Google Colab,我想在本地运行它,以便它可以使用我自己的 CPU 来避免 Colab Resource Restrictions,所以我遵循了 {{3 }},在我准备好并尝试运行 Colab 中的任何单元格后,它会弹出此错误:

Official guide on running Colab locally

然后马上改成这样-

enter image description here

这是它给我的完整运行时日志:

    Could not fetch resource at : 404 Not Found 
FetchError: Could not fetch resource at : 404 Not Found 
    at ny.fr [as constructor] (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20210513-060327-RC00_373550014:684:397)
    at new ny (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20210513-060327-RC00_373550014:1299:1093)
    at za.program_ (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20210513-060327-RC00_373550014:5067:158)
    at Ba (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20210513-060327-RC00_373550014:19:336)
    at za.next_ (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20210513-060327-RC00_373550014:17:503)
    at Ca.next (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20210513-060327-RC00_373550014:20:206)
    at f (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20210513-060327-RC00_373550014:61:101)

由于我一整天都在为这个错误而苦苦挣扎,而且我还重新安装和升级了 Python、TensorFlow 以及 jupyter-notebook 几次,所以请帮助我!!!或者,如果有人知道如何将运行时更改回浏览器也会有所帮助,我有点卡在这里...

1 个答案:

答案 0 :(得分:0)

既然您提到您是 colab 的新手,请仔细检查基础知识 - 您是否尝试过 Connect Button(在 colab 的右上角区域)并选择“连接到本地运行时”?

另请注意,有时大型数据集会导致内存不足错误,因此这也可能是一个原因。