当前位置:网站首页>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
边栏推荐
- resilience4j 重试源码分析以及重试指标采集
- easypoi
- 修复一次flutter 无法选中模拟器
- [324. swing sequence II]
- 实型数运算
- 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
- Input and output character data
- grep文本搜索工具
- ROS中quaternion四元数和欧拉角转换
- 市值1200亿美金,老牌财税巨头Intuit是如何做到的?
猜你喜欢

【Try to Hack】Cobalt Strike(一)

How strong a mathematical foundation does deep learning need?

CSDN salary increase technology selenium automated test stack summary

2022茶艺师(中级)考试模拟100题及模拟考试

bluecmsv1.6代码审计

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

Racher add / delete node

Leetcode 36. 有效的数独(可以,一次过)
![[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

ThreadLocal原理
随机推荐
【Go语言刷题篇】Go从0到入门5:Map综合复习、条件语句、循环语句练习
Relevant calculation of sphere, etc
T检验(检验两个总体的均值差异是否显著)
QSP读取标签配置错误问题
Server configuration estimation of core IOT Bluetooth AOA positioning system
head、tail查看文件
Racher add / delete node
[go language questions] go from 0 to entry 5: comprehensive review of map, conditional sentences and circular sentences
Is it safe for CICC fortune to open an account? Let's talk about CICC fortune
2022 tea master (intermediate) examination simulated 100 questions and simulated examination
ROS中quaternion四元数和欧拉角转换
JSP to get the value in the session
怎么理解云原生数据库的易用性?
Compression and decompression commands
resilience4j 重试源码分析以及重试指标采集
with torch.no_grad():的使用原因
C#应用程序界面开发基础——窗体控制
输入和输出字符型数据
【学习笔记】聚类分析
ArrayList of collection