diff --git a/ppocr/modeling/transforms/tps.py b/ppocr/modeling/transforms/tps.py index 431943e5f27612ab1c1eac292aa36f0763cb67ab..340f6c44328f94b368049db24bc6cf86e5f2b6c0 100644 --- a/ppocr/modeling/transforms/tps.py +++ b/ppocr/modeling/transforms/tps.py @@ -217,7 +217,7 @@ class GridGenerator(nn.Layer): paddle.arange( -I_r_width, I_r_width, 2, dtype='float64') + 1.0, paddle.to_tensor( - I_r_width, dtype='float64')) # / 2.2128224363981985e-08 + I_r_width, dtype='float64')) I_r_grid_y = paddle.divide( paddle.arange( -I_r_height, I_r_height, 2, dtype='float64') + 1.0,