You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command: from trocr.src.main import TrocrPredictor
Output:
ModuleNotFoundError Traceback (most recent call last)
Cell In[5], line 2
1 from PIL import Image, ImageDraw, ImageFont
----> 2 from trocr.src.main import TrocrPredictor
File c:\Users\ranas\Documents\ML\OCR Based PDF Reader\trocr\src\__init__.py:1
----> 1 from .main import TrocrPredictor
3 # expose the TrocrPredictor interface to other models
4 __all__ = ["TrocrPredictor"]
File c:\Users\ranas\Documents\ML\OCR Based PDF Reader\trocr\src\main.py:2
1 from PIL import Image
----> 2 from torch.utils.data import DataLoader
4 from .configs import paths
5 from .configs import constants
ModuleNotFoundError: No module named 'torch'
The text was updated successfully, but these errors were encountered:
Command:
from trocr.src.main import TrocrPredictor
Output:
The text was updated successfully, but these errors were encountered: