WARNING:root:Invalid model URL, using default initialization #890
Replies: 2 comments 17 replies
-
|
@akarshsoman Hi 👋 , |
Beta Was this translation helpful? Give feedback.
-
|
I hope this message finds you well. I am currently working on an OCR project using the doctr library and encountered an issue when trying to use the fast_tiny detection architecture. Despite setting pretrained=True, I receive the following warning: WARNING:root:Invalid model URL, using default initialization. from doctr.models import ocr_predictor det_arch = "fast_tiny" Could you please advise on how I can resolve this issue so that the pretrained model is correctly downloaded and used? I have ensured that I am using the latest version of doctr. Thank you in advance for your assistance |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
when i try to run this code , it shows WARNING:root:Invalid model URL, using default initialization, can u please help me with this
from doctr.models import ocr_predictor
from doctr.io import DocumentFile
model = ocr_predictor(reco_arch='sar_resnet31', pretrained=True)
multi_img_doc = DocumentFile.from_images(["2.jpg", "4.jpg"])
result = model(multi_img_doc)
result.show(multi_img_doc)
result
Beta Was this translation helpful? Give feedback.
All reactions