"...en/git@developer.sourcefind.cn:chenpangpang/diffusers.git" did not exist on "161449d51ae24f9b0f4935e8574bbe55c59fe0a4"
Commit bf9f93f7 authored by LDOUBLEV's avatar LDOUBLEV
Browse files

Merge branch 'bm_dyg' of https://github.com/LDOUBLEV/PaddleOCR into bm_dyg

parents ab0b1ace 962a628d
...@@ -231,9 +231,7 @@ class GridGenerator(nn.Layer): ...@@ -231,9 +231,7 @@ class GridGenerator(nn.Layer):
""" Return inv_delta_C which is needed to calculate T """ """ Return inv_delta_C which is needed to calculate T """
F = self.F F = self.F
hat_eye = paddle.eye(F, dtype='float64') # F x F hat_eye = paddle.eye(F, dtype='float64') # F x F
tmp1 = C.reshape([1, F, 2]) hat_C = paddle.norm(C.reshape([1, F, 2]) - C.reshape([F, 1, 2]), axis=2) + hat_eye
tmp2 = C.reshape([F, 1, 2])
hat_C = paddle.norm(tmp1 - tmp2, axis=2) + hat_eye
hat_C = (hat_C**2) * paddle.log(hat_C) hat_C = (hat_C**2) * paddle.log(hat_C)
delta_C = paddle.concat( # F+3 x F+3 delta_C = paddle.concat( # F+3 x F+3
[ [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment