这是在Firefox中的外观:
我在chrome控制台中收到错误消息:
Refused to execute script from 'http://localhost:6006/index.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
在firefox控制台中,我收到错误消息:
The resource from “http://localhost:6006/index.js” was blocked due to MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff)
和
Loading failed for the <script> with source “http://localhost:6006/index.js”.
我尝试过:Unable to open Tensorboard in browserTensorboard get blank page
我在控制台中输入:
tensorboard --logdir=runs --bind_all
tensorboard --logdir=./runs --bind_all
tensorboard --logdir=./runs/ --bind_all
tensorboard --logdir=./runs --host localhost --port 6006
tensorboard --logdir=./runs --host localhost
tensorboard --logdir=./runs --port 6006 --bind_all
我有张量板版本:2.1.0我生成了这样的数据:
train_set = torchvision.datasets.FashionMNIST(
root="./data/FashionMNIST",
train=True,
download=True,
transform=transforms.Compose([
transforms.ToTensor()
])
)
train_loader = torch.utils.data.DataLoader(train_set, batch_size=1000)
tb = SummaryWriter()
network = Network()
images, labels = next(iter(train_loader))
grid = torchvision.utils.make_grid(images)
tb.add_image("image", grid)
tb.add_graph(network, images)
tb.close()
我遵循了本教程:TensorBoard with PyTorch - Visualize Deep Learning Metrics
报告了类似的错误和解决方法here。
显然,这与Windows注册表中的某些问题有关。根据评论,这似乎是解决方案
就我而言,以下过程解决了问题:
- Windows + R和注册表编辑器
- [您的计算机] \ HKEY_LOCAL_MACHINE \ SOFTWARE \ Classes.js
- 将内容类型从“文本/纯文本”更改为“应用程序/ javascript”