XiSHEN0220/RANSAC-Flow

'HomographyWarper' object has no attribute 'warp_grid'

jia199903 opened this issue · 3 comments

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',您知道是为什么吗

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'

hello,Does this happen when you test some pictures with ransac-flow like below (straight line bend)
image

@abdullah-altun
#29 (comment)
Do you know why this max piexl is 24