def __init__(self,input_shape,control_points_ratio):
self.num_batch = input_shape[0]
self.height = input_shape[1]
self.width = input_shape[2]
self.num_channels = input_shape[3]
self.out_height = self.height
self.out_width = self.width
self.Column_controlP_number = int(input_shape[1] / \
(control_points_ratio))
self.Row_controlP_number = int(input_shape[2] / \
(control_points_ratio))
init_x = np.linspace(-5,5,self.Column_controlP_number)
init_y = np.linspace(-5,5,self.Row_controlP_number)
x_s,y_s = np.meshgrid(init_x, init_y)
self.initial = np.array([x_s,y_s])
Dense_Transformer_Network.py 文件源码
python
阅读 40
收藏 0
点赞 0
评论 0
评论列表
文章目录