我的目标是三维医学图像。在
对于形状为[batch, height, width, channels]
的4-D张量B,使用tf.image.resize_*
进行上采样。在
对于形状为[batch, height, width, depth, channels]
的5-D张量A,例如要向上采样到形状[batch, 1.5*height, 1.5*width, 1.5*depth, channels]
,tf.nn.conv3d_transpose
可以用于上采样,但我不需要额外的权重用于训练。在
张量流中的5维张量上采样是否有直接运算?在
Tags:
你可以用tf.常数为conv3d_transpose提供过滤器。它不会为训练增加额外的重量。您也可以使用conv3d的一个额外的过程,使用相同的常量过滤器进行双线性插值上采样。下面的例子是我使用双线性插值进行3D张量(5D格式)上采样的函数。在
相关问题 更多 >
编程相关推荐