Canjie-Luo / MORAN_v2

MORAN: A Multi-Object Rectified Attention Network for Scene Text Recognition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

论文中的一个小细节问题

fuyongXu opened this issue · comments

你好,请问一下在论文中有这么一句话
Before sampling, the x-coordinate and y-coordinate on the offset maps are normalized to [0; W ] and [0; H],respectively.
但是在代码中我好像没有看到这样的实现。

x_rectified = nn.functional.grid_sample(x, offsets_x)

我们的v2版本直接用了PyTorch的官方函数。