UserWarning: 'pin_memory' argument is set as true but no accelerator is found, then device pinned memory won't be used.
I set gpu=False when initing the Reader but get the warning
\site-packages\torch\utils\data\dataloader.py:665:UserWarning: 'pin_memory' argument is set as true but no accelerator is found, then device pinned memory won't be used.
Cause is memory pinning is being done based on the detected accelerators and doesnt obey the gpu flag.
I have the apparent fix in my fork: https://github.com/brownsloth/EasyOCR . But I still have no clue over if thise fix can impact other code or environments, so if someone can guide me how to run all the tests I can check and then raise a PR.
I hit this today. I processed 65 files can't suppress the warning without doing weird things 😅