使用 Firefox 使用 Tensorboard 在 Google Colab 中获取错误 403

Cag*_*eUs 9 python firefox python-3.x tensorboard google-colaboratory

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

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

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

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

有人可以帮我弄这个吗?

Raf*_*edo 12

对我来说,它对 Firefox 停用增强跟踪保护起作用。

在此输入图像描述


the*_*ace 11

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

我在使用 Chrome 时遇到了同样的问题,并通过允许所有内容来修复它:

屏幕截图 cookie 铬

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

截图 firefox 跟踪保护

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


kit*_*kid 5

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

对于 Chrome 来说

1. chrome://settings/
2. Under Privacy and security >> Cookies and other site data >> Allow all cookies
Run Code Online (Sandbox Code Playgroud)

对于勇敢者来说,

1. Turn off the shields
Run Code Online (Sandbox Code Playgroud)

  • 这对我在 Ubuntu 20.04 LTS 上的 Chrome 版本 104.0.5112.79(官方版本)(64 位)上有效。 (2认同)