Closed maria-mh07 closed 12 months ago
Solved! In the "model.py" file, on line 575, I changed
if self.device.type != "mps:"
for
if self.device.type != "mps" and self.device.type != "cpu":
Sorry for the inconvenience.
No you found a bug in an edgecase (cuda installed but cpu used). Will push a general solution in a bit
I´m in windows 10, Python 3.10.6, torch 2.0.1+cu117, but GPU VRAM is too small. I ran:
pip install nougat-ocr
nougat inputs/test_file.pdf -o outputs
Error:
The error occurs in the "forward" method of the "SwinEncoder" class. How do I solve it?