docs: fix faulty code for prediction and recognition demos by khanfarhan10 · Pull Request #1800 · mindee/doctr (original) (raw)
Modified to the following:
pretrained: if you want to use a model that has been pretrained on a specific dataset, setting pretrained=True this will load the corresponding weights. If pretrained=False, which is the default, would otherwise lead to a random initialization and would lead to no/useless results.