'HomographyWarper' object has no attribute 'warp_grid'
jia199903 opened this issue · 3 comments
jia199903 commented
warper = tgm.HomographyWarper(I1Tensor.size()[2], I1Tensor.size()[3])
grid = warper.warp_grid(torch.from_numpy(bestParam.astype(np.float32)).unsqueeze(0).cuda())
作者您好,我在运行这段代码时会报错AttributeError: 'HomographyWarper' object has no attribute 'warp_grid',您知道是为什么吗
abdullah-altun commented
I solved the problem where the usage of the warp_grid property of the HomographyWarper class was changed in this way:
Replace 'flowCoarse = warper.warp_grid(bestPara)' with
'warper.precompute_warp_grid(bestPara)
flowCoarse = warper._warped_grid'
jia199903 commented
jia199903 commented
@abdullah-altun
#29 (comment)
Do you know why this max piexl is 24