Open allankouidri opened 1 year ago
Thanks for reporting the bug. Will fix it ASAP.
Hi, the bug was fixed in pr #1721
Excellent! Thanks for the great work.
Hi @AllentDan, Thanks you for fixing the bug for text recognition.
There is the same error for the text detection models.
Let me know if I should open a new issue.
Hi @AllentDan, Thanks you for fixing the bug for text recognition.
There is the same error for the text detection models.
Let me know if I should open a new issue.
Hi, @allankouidri Will fix it soon. Thanks.
Checklist
Describe the bug
The bug occurs when preparing the model inputs for backend model inference from a end2end model (e.g. dbnet_r50 or satrn) using np.ndarray as input.
There is no issue when using the image path.
By editing the mmocr lib, replacing the transform function from "class LoadImageFromFile(MMCV_LoadImageFromFile)" the one from "class LoadImageFromNDArray(LoadImageFromFile)" the inference is working.
Reproduction
Environment
Error traceback