3

我有一个带有几个卷积层的神经网络,我想可视化我正在创建的特征图。

我看过这篇文章: Visualize images in intermediate layers in torch (lua)

这建议使用 itorch,但它需要在我想避免的 itorch 笔记本中运行我的代码。

是否有任何其他 Torch 包可用于可视化卷积层?

编辑(有详细的解决方案):

由于我在网上找到的关于如何执行此操作的资源很少,因此我记录了我的完整解决方案并将其放在 Github 上。任何想在 Torch 中可视化神经网络的人都可以从这里开始!

https://github.com/egaebel/torch-neural-network-visualization

再次感谢 YuTse 提供的 gnuplot 技巧!

4

1 回答 1

0

gnuplot

在 itorch 控制台模式(itorch)/ 手电筒模式(th

require 'image';

a = image.lena();

require 'gnuplot';

gnuplot.figure(1);

gnuplot.imagesc(a[1])
于 2015-11-16T03:13:22.443 回答