当前位置:网站首页>Application of UNET in battery segmentation project
Application of UNET in battery segmentation project
2022-07-18 06:52:00 【fegggye】
Unet Network structure source code (slim Realization ): Output result is single channel , The activation function uses leakrelu
def lrelu(x):
return tf.maximum(x * 0.2, x)
activation_fn=lrelu
def upsample_and_concat(x1, x2, output_channels, in_channels):
pool_size = 2
deconv_filter = tf.Variable(tf.truncated_normal([pool_size, pool_size, output_channels, in_channels], stddev=0.02))
deconv = tf.nn.conv2d_transpose(x1, deconv_filter, tf.shape(x2), strides=[1, pool_size, pool_size, 1])
deconv_output = tf.concat([deconv, x2], 3)
deconv_output.set_shape([None, None, None, output_channels * 2])
return deconv_output
def UNet(inputs, reg): # Unet
conv1 = slim.conv2d(inputs, 32, [3, 3], rate=1, activation_fn=activation_fn, scope='g_conv1_1', weights_regularizer=reg)
conv1 = slim.conv2d(conv1, 32, [3, 3], rate=1, activation_fn=activation_fn, scope='g_conv1_2',weights_regular边栏推荐
猜你喜欢

翻转单词/Maxqueue/二次树的序列化和反序列化

G1 is so strong, are you sure you don't know?

TCP 三次握手、四次挥手图解

Application du moteur de visualisation Web de topologie dans le domaine de la simulation et de l'analyse

【pytorch】|transforms.FiveCrop

Domestic light! High score spatiotemporal representation learning model uniformer

C语言 第九章 字符串

leetcode:74. 搜索二维矩阵

CDQ分治与整体二分 学习笔记

基于OSQP的二次规划
随机推荐
MQ系列2:消息中间件的技术选型
ICCV 2021 的最佳论文模型 Swin Transformer 终于对视频下手了
翻转单词/Maxqueue/二次树的序列化和反序列化
[leetcode] 26. Delete duplicates in the ordered array
物理学\数学中常用的“等号”
国产之光!高分时空表征学习模型 UniFormer
R language uses LM function to build linear regression model, uses I operator to embed expression, and uses expression to specify the form of regression equation
Mysql database installation & Problems
Unet在电池分割项目上应用
leetcode:240. Search 2D matrix II
Gurobi——GRBModel
Hongke case | nanogue uses Onyx system to realize nondestructive characterization of graphene electrical properties
C 基本语法解读: 总结程序中的一些常用到的但是容易混乱的函数(i++与++i) (位域)
Ffmpeg audio and video transfer package (MP4 and flv are transferred to each other, and streaming data is transferred to FLV and MP4)
Type-c充电OTG芯片(LDR6028S)
联想电源管理下载
Great Cells & Counting Grids
图扑 Web 可视化引擎在仿真分析领域的应用
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (4)
关于一些字符串相关函数,内存函数及部分模拟