参考1:
pytorch版本1
(325条消息) Pytorch从入门到放弃(8)——可视化FeatureMap(特征图)_澎湃de家夥的博客-CSDN博客
pytorch版本2
https://blog.csdn.net/m0_46204224/article/details/107749900
pytorch版本3
https://blog.csdn.net/whtlook/article/details/98228855
pytorch版本代码:https://github.com/utkuozbulak/pytorch-cnn-visualizations
pytorch版本4:
https://blog.csdn.net/qq_42079689/article/details/103137229
pytorch版本5
https://blog.csdn.net/free1993/article/details/108880686
参考2:
keras版本1
https://blog.csdn.net/dcrmg/article/details/81255498
根据博客的要求,新创建了一个虚拟环境,配置了keras
在运行代码时报错:
Traceback (most recent call last):
File "D:/PYTHON/Paper2/featuremapzhanshi/keras_featuremapVGG.py", line 45, in <module>
base_model = VGG19(weights='imagenet', include_top=False)
File "F:\Anaconda3\envs\keras\lib\site-packages\tensorflow\python\keras\applications\vgg19.py", line 226, in VGG19
file_hash='253f8cb515780f3b799900260a226db6')
File "F:\Anaconda3\envs\keras\lib\site-packages\tensorflow\python\keras\utils\data_utils.py", line 279, in get_file
raise Exception(error_msg.format(origin, e.errno, e.reason))
Exception: URL fetch failure on https://storage.googleapis.com/tensorflow/keras-applications/vgg19/vgg19_weights_tf_dim_ordering_tf_kernels_notop.h5: None -- [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
Process finished with exit code 1
解决办法:
解决:手动下载这个模型(https://storage.googleapis.com/tensorflow/keras-applications/vgg19/vgg19_weights_tf_dim_ordering_tf_kernels_notop.h5),放到 ~/.keras/models/(C:\Users\xxx明\.keras\models)目录下即可。
keras版本2
https://blog.csdn.net/u014453898/article/details/89209720
keras版本3
https://blog.csdn.net/dcrmg/article/details/81255498
参考3:
caffe有一个软件可以可视化各层的特征输出
https://blog.csdn.net/yj3254/article/details/79167338
Tensorflow版本1
Tensorflow+VGG16实现卷积神经网络特征图可视
https://blog.csdn.net/missyougoon/article/details/85645195
某层特征的特征图可视化结果,可以看出不是黑白的。为什么会出现这种情况呢,原因是plt.imshow()将灰度图像进行彩色映射
具体的请看大神博客解释:https://blog.csdn.net/missyougoon/article/details/89510188
Tensorflow版本2
https://blog.csdn.net/u014281392/article/details/74316028
有一个评论有些不理解,再此记录一下,以后查阅资料
Tensorflow版本3
https://www.freesion.com/article/2715878727/