【问题标题】:Getting Error 403 in Google Colab with Tensorboard with Firefox使用 Firefox 的 Tensorboard 在 Google Colab 中出现错误 403
【发布时间】:2021-01-20 22:00:58
【问题描述】:

我的云端硬盘中已经存在一个 tfevent 文件,并且我已成功将其连接到 Google Colab。在 Tensorboard Github 的问题中搜索后,我发现我必须将 dom.serviceWorkers.enabled 设置为 True,我已经这样做了。但是在执行这两个步骤后在 Google Colab 上:

  1. %load_ext tensorboard
  2. %tensorboard --logdir path/to/logs

我在第二步单元格上收到错误 403:

我使用的是 Firefox 版本 81.0.1(64 位),我的默认模式是私人窗口,所以在我关闭所有浏览器窗口后,历史记录和缓存都会被清除。

有人可以帮我解决这个问题吗?

【问题讨论】:

    标签: python python-3.x firefox google-colaboratory tensorboard


    【解决方案1】:

    Tensorboard 似乎需要您启用第三方 cookie 才能运行而不返回 HTTP 403(禁止)错误。

    我在使用 Chrome 时遇到了同样的问题,并通过允许一切解决了它:

    你可以像这样在 Firefox 上做同样的事情:

    您还可以找出需要哪个确切的 cookie,然后只允许那个。

    【讨论】:

    • 我启用了第三方cookies问题依旧存在,我在ubuntu系统上安装了firefox浏览器
    • 您可以查看浏览器的开发者扩展程序。选择网络选项卡并查看是否无法加载任何资源。我还建议您尝试使用“干净”的浏览器打开页面,这意味着没有附加组件和安装过的任何东西,这样您就可以消除浏览器作为错误来源
    【解决方案2】:

    对我来说,它在 Firefox 上停用了增强的跟踪保护

    【讨论】:

      【解决方案3】:

      我遇到了与在 chrome 设置中打开“Block third-party cookies”相同的问题。请参阅详细问题线程here。我尝试将“googleusercontent.com”列入白名单,但没有成功。

      对于 Chrome

      1. chrome://settings/
      2. Under Privacy and security >> Cookies and other site data >> Allow all cookies
      

      为了勇敢,

      1. Turn off the shields
      

      【讨论】:

        【解决方案4】:

        如果您确定日志没有用,请尝试清除日志。

        !rm -rf ./logs/ 
        

        重新加载张量板并检查它是否有效。

        【讨论】:

          猜你喜欢
          • 2020-06-12
          • 2020-08-23
          • 2019-08-24
          • 2021-01-29
          • 1970-01-01
          • 2020-06-17
          • 2020-05-08
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多