当前位置:网站首页>Visualization of neural network structure in different frames
Visualization of neural network structure in different frames
2022-06-28 20:20:00 【seven_ Not Severn】
One 、keras
1, stay keras Use in keras.summary(), perhaps plot_model()
eg:plot_model(model,to_file="model.png",show_shapes=True,show_layer_names=True,rankdir='TB')
plt.figure(figsize=(10,10))
img = plt.imread("model.png")
plt.imshow(img)
plt.axis('off')
plt.show()

Two 、PyTorch
Output network structure :
MyConvNet = ConvNet()
print(MyConvNet)
# Output results :
ConvNet(
(conv1): Sequential(
(0): Conv2d(1, 16, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
(1): ReLU()
(2): AvgPool2d(kernel_size=2, stride=2, padding=0)
)
(conv2): Sequential(
(0): Conv2d(16, 32, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
(1): ReLU()
(2): MaxPool2d(kernel_size=2, stride=2, padding=0, dilation=1, ceil_mode=False)
)
(fc): Sequential(
(0): Linear(in_features=1568, out_features=128, bias=True)
(1): ReLU()
(2): Linear(in_features=128, out_features=64, bias=True)
(3): ReLU()
)
(out): Linear(in_features=64, out_features=10, bias=True)
)
1, adopt HiddenLayer Visualization network
2, adopt PyTorchViz Visualization network
wait source
边栏推荐
- Server configuration estimation of core IOT Bluetooth AOA positioning system
- 2788.Cifera
- Configuration du mode tcwind
- jsp中获取session中的值
- C # application interface development foundation - form control
- Fix the simulator that cannot be selected by flutter once
- Is it safe for CICC fortune to open an account? Let's talk about CICC fortune
- 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDe
- 【学习笔记】因子分析
- 【毕业季·进击的技术er】努力只能及格,拼命才能优秀!
猜你喜欢

28 rounds of interviews with 10 companies in two and a half years

Jenkins pipeline's handling of job parameters

Day88. qiniu cloud: upload house source pictures and user avatars

Lucene构建索引的原理及源代码分析

How strong a mathematical foundation does deep learning need?

2022 welder (elementary) special operation certificate examination question bank and answers

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDe

Analysis of all knowledge points of TCP protocol in network planning

不同框架的绘制神经网络结构可视化

还在付费下论文吗?快来跟我一起白piao知网
随机推荐
不同框架的绘制神经网络结构可视化
Huawei cloud onemeeting tells you that the whole scene meeting is held like this!
【学习笔记】因子分析
数据资产为王,如何解析企业数字化转型与数据资产管理的关系?
with torch.no_grad():的使用原因
How to obtain the coordinates of the aircraft passing through both ends of the radar
oracle delete误删除表数据后如何恢复
2788.Cifera
odoo15 Module operations are not possible at this time, please try again later or contact your syste
Day88.七牛云: 房源图片、用户头像上传
Real number operation
阿里开源(EasyExcel)
SaaS sales upgrade under the new situation | tob Master Course
3. 整合 Listener
2022 P cylinder filling test exercises and online simulation test
2. 整合 Filter
Shell reads the value of the JSON file
Fix the simulator that cannot be selected by flutter once
ROS中quaternion四元數和歐拉角轉換
Database learning notes (sql04)