【问题标题】:How to visualize features extracted from ResNet50如何可视化从 ResNet50 中提取的特征
【发布时间】:2021-04-11 18:32:52
【问题描述】:

我使用在 ImageNet 上预训练的 ResNet50 网络(使用 Keras 框架)提取了特征,这些特征是从平均池化层 (1 x 1 x 2048) 中提取的,是否有可能以某种方式将它们可视化?

format: 
Id --- n0 ---------- n1 ------ n2 --------- n3 ---------- n4 --------------- ... --n2047
0, 0.29248324, 0.20878232, 0.10046699, 0.021526804, 0.8542325000000001, 0.12660244, 0.0 

【问题讨论】:

    标签: python keras feature-extraction resnet


    【解决方案1】:

    我不清楚你为什么要这样做,但也许你可以使用热图

    import seaborn as sns; sns.set_theme()
    ax = sns.heatmap(features)
    

    【讨论】:

    • 谢谢,但我想问题是如何将这些特征解码为 3 维可见图像
    猜你喜欢
    • 2016-03-29
    • 2019-10-21
    • 1970-01-01
    • 2015-10-20
    • 2016-05-15
    • 2019-09-14
    • 2020-03-20
    • 1970-01-01
    • 2018-10-02
    相关资源
    最近更新 更多