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

"unknown: figure" Warning #8

Open
spookey0188 opened this issue Apr 15, 2024 · 0 comments
Open

"unknown: figure" Warning #8

spookey0188 opened this issue Apr 15, 2024 · 0 comments

Comments

@spookey0188
Copy link

spookey0188 commented Apr 15, 2024

I'm encountering this error/warning when translating a PDF file from Arabic to English on Windows WSL Kali linux distro build on a RTX 4070 after following all the necessary steps. The error I get is this:

unknown: figure
232it [05:15,  1.34s/it]/home/kali/pdf_translator/lib/python3.11/site-packages/torch/utils/checkpoint.py:460: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants.
  warnings.warn(
/home/kali/pdf_translator/lib/python3.11/site-packages/torch/utils/checkpoint.py:90: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
  warnings.warn(
0it [00:00, ?it/s]
0it [00:00, ?it/s]
233it [05:17,  1.34s/it]/home/kali/pdf_translator/lib/python3.11/site-packages/torch/utils/checkpoint.py:460: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants.
  warnings.warn(
/home/kali/pdf_translator/lib/python3.11/site-packages/torch/utils/checkpoint.py:90: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
  warnings.warn(
1it [00:00, 48210.39it/s]
1it [00:00, 91180.52it/s]
0it [00:00, ?it/s]

What's the cause of this and is there a fix?

@spookey0188 spookey0188 changed the title Checkpoint models/unilm/publaynet_dit-b_cascade.pth not found! unknown: figure Apr 15, 2024
@spookey0188 spookey0188 changed the title unknown: figure "unknown: figure" Warning Apr 15, 2024
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