【问题标题】:Visualize Neural Net Layers in Torch, without itorch在 Torch 中可视化神经网络层,无需使用 itorch
【发布时间】:2016-02-15 04:11:24
【问题描述】:

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

我看过这个帖子: Visualize images in intermediate layers in torch (lua)

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

还有其他 Torch 包可以用来可视化卷积层吗?

编辑(附详细解决方案):

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

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

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

【问题讨论】:

    标签: lua neural-network torch conv-neural-network


    【解决方案1】:

    gnuplot

    在 itorch 控制台模式(itorch)/torch 模式(th)

    require 'image';
    
    a = image.lena();
    
    require 'gnuplot';
    
    gnuplot.figure(1);
    
    gnuplot.imagesc(a[1])
    

    【讨论】:

    • 感谢您的建议!我还没有回到这个项目,我可能会在这个周末试一试!
    • 这只能在 itorch 中工作吗?我希望能够使用普通的手电筒。
    • 您也可以使用qluaimage 包可以很好地配合它。
    猜你喜欢
    • 2020-03-19
    • 2020-02-28
    • 2017-03-08
    • 2016-12-30
    • 2015-07-05
    • 1970-01-01
    • 2017-02-15
    • 2011-03-28
    • 2017-05-20
    相关资源
    最近更新 更多