ppisljar / pdf_translator

translate PDF files using GPT
Other
87 stars 27 forks source link

"unknown: figure" Warning #8

Open spookey0188 opened 7 months ago

spookey0188 commented 7 months ago

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?

tuha1994 commented 3 weeks ago

how to fix this issue?