【深度学习笔记】深度学习画图

本文介绍了使用PlotNeuralNet和ConvNetDraw在Windows上进行深度学习模型可视化的步骤和方法,包括如何生成tex文件、主要的框架结构,如卷积、池化、Softmax等操作的可视化,以及在U-net结构的应用。同时,提出了待解决的问题,如数字居中和特定形状的绘制。
摘要由CSDN通过智能技术生成

PlotNeuralNet

github

Windows上使用方法

用python生成tex文件然后用TeXstudio

主要框架

import sys
sys.path.append('../')
from pycore.tikzeng import *

# defined your arch
arch = [
    to_head( '..' ),
    to_cor(),
    to_begin(),
    ###网络
    to_end()
    ]

def main():
    namefile = str(sys.argv[0]).split('.')[0]
    to_generate(arch, namefile + '.tex' )

if __name__ == '__main__':
    main()

卷积

to_Conv("conv1", 1, 1, offset="(0,0,0)", to="(0,0,0)", height=40, depth=50, width=3 )

offset

在这里插入图片描述

to_connection()

to_Conv("conv1", 1, 1, offset="(0,0,0)", to="(0,0,0)", height=50, depth=50, width=3 ),
to_Conv("conv2", 2, 2, offset="(6,0,0)", to="(0,0,0)", height=50, depth=50, width=3 ),
to_connection("conv1","conv2"),

在这里插入图片描述

to_Pool()

to_Conv("conv1", 1, 1, offset="(0,0,0)", to="(0,0,0)", height=50, depth=50, width=3 ),
to_Pool("pool1",offset="(5,0,0)",to="(conv1-east)"),
to_connection("conv1","pool1"),

在这里插入图片描述

to_Softmax()

to_Conv("conv1", 1, 1, offset="(0,0,0)", to="(0,0,0)", height=50, depth=50, width=3,caption
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值