Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lazy wrapper should be called at most once #32

Open
deisler134 opened this issue May 14, 2024 · 0 comments
Open

lazy wrapper should be called at most once #32

deisler134 opened this issue May 14, 2024 · 0 comments

Comments

@deisler134
Copy link

when run face_parser with multi-threading, get error

  File "/root/.local/lib/python3.10/site-packages/facer/face_parsing/farl.py", line 79, in forward
[2024-05-14 21:41:31,730][mif-ml09.marz.vfx][__main__:_segment:130][INFO] - process track 5
    grid = setting['get_grid_fn'](matrix=matrix, orig_shape=(h, w))
  File "/root/.local/lib/python3.10/site-packages/facer/transform.py", line 353, in make_tanh_warp_grid
    return _forge_grid(
  File "/root/.local/lib/python3.10/site-packages/facer/transform.py", line 225, in _forge_grid
    out_xxyy: torch.Tensor = fn(in_xxyy)  # (h x w) x 2
  File "/root/.local/lib/python3.10/site-packages/facer/transform.py", line 279, in inverted_tanh_warp_transform
    inv_matrix = torch.linalg.inv(matrix)  # b x 3 x 3
RuntimeError: lazy wrapper should be called at most once
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant