当前位置:网站首页>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
边栏推荐
- Is it safe for CICC fortune to open an account? Let's talk about CICC fortune
- jsp中获取session中的值
- 压缩与解压缩命令
- 数据资产为王,如何解析企业数字化转型与数据资产管理的关系?
- [graduation season · advanced technology Er] hard work can only pass, hard work can be excellent!
- Severity code description project file line suppress status error lnk2038 detected a mismatch of "runtimelibrary": the value "md\u dynamicrelease" does not match the value "mdd\u dynamicde"
- UESTC (shenhengtao team) & JD AI (Mei Tao team) proposed a structured dual stream attention network for video Q & A, with performance SOTA! Better than the method based on dual video representation
- Pyinstaller打包pikepdf失败的问题排查
- Relevant calculation of sphere, etc
- Number theory -- detailed proof of Euler function, sieve method for Euler function, Euler theorem and Fermat theorem
猜你喜欢

2022年T电梯修理考试题库模拟考试平台操作

5g NR MBS architecture introduction

Software supply chain security risk guide for enterprise digitalization and it executives
![[go language questions] go from 0 to entry 5: comprehensive review of map, conditional sentences and circular sentences](/img/7a/16b481753d7d57f50dc8787eec8a1a.png)
[go language questions] go from 0 to entry 5: comprehensive review of map, conditional sentences and circular sentences

Racher add / delete node

Win 10 create a gin framework project

Severity code description project file line suppress status error lnk2038 detected a mismatch of "runtimelibrary": the value "md\u dynamicrelease" does not match the value "mdd\u dynamicde"

方 差 分 析

csdn涨薪技术-Selenium自动化测试全栈总结

CNN-LSTM的flatten
随机推荐
Troubleshooting of pyinstaller failed to pack pikepdf
Relevant calculation of sphere, etc
【Try to Hack】Cobalt Strike(一)
How strong a mathematical foundation does deep learning need?
关键字long
Markdown Mermaid planting grass (1)_ Introduction to Mermaid
阿里开源(EasyExcel)
员工薪资管理系统
2022年4月10日--使用C#迈出第一步--使用C#从.NET类库调用方法(没看懂)
Compression and decompression commands
How to "calculate" in the age of computing power? The first mover advantage of "convergence of computing and networking" is very important!
Fix the simulator that cannot be selected by flutter once
Average score of 100 people
Pyinstaller打包pikepdf失败的问题排查
odoo15 Module operations are not possible at this time, please try again later or contact your syste
Win 10 create a gin framework project
Pipeline | and redirection >
Markdown mermaid种草(1)_ mermaid简介
压缩与解压缩命令
Lucene构建索引的原理及源代码分析