def ConvertGenOutput( X_src, X_est ):
#X_est : estimated AB-channel
if X_est.shape[1] == 3:
LAB_est = np.concatenate((X_src[:,[0],:,:], X_est[:,[1,2],:,:]), axis = 1 )
if X_est.shape[1] == 2:
LAB_est = np.concatenate((X_src[:,[0],:,:], X_est), axis = 1)
#pdb.set_trace()
#pdb.set_trace()
return LAB_est
# RGB_est = color.lab2rgb(LAB_est)
# return floatX( RGB_est/ 0.5 - 1. )
评论列表
文章目录