Sep-05-2022, 12:26 PM
Well, it seems that it WAS getting installed, but didn't show anything because it had a "-q" in the command.
"pip install -q tensorflow-addons"
I removed it and it shows that requirements are already satisfied. I'm still not able to use DocTr.
I get this message:
This is my code:
"pip install -q tensorflow-addons"
I removed it and it shows that requirements are already satisfied. I'm still not able to use DocTr.
I get this message:
Quote:ModuleNotFoundError: DocTR requires either TensorFlow or PyTorch to be installed. Please ensure one of them is installed and that either USE_TF or USE_TORCH is enabled.
This is my code:
from doctr.io import DocumentFile from doctr.models import ocr_predictor model = ocr_predictor(pretrained=True) document = DocumentFile.from_images("img2.jpeg") result = model(document) result.show(document)I'm not sure also where to create my "main.py" file, as I had to clone the doctr git repository. I created it inside the doctr project folder.