Random seed for ocr_predictor #1753
Unanswered
hienphan161
asked this question in
Q&A
Replies: 1 comment
-
This should normally not be the case do you have an example to reproduce ? If you want to seed you should also seed numpy and random :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to set a random seed for the
ocr_predictor
?Currently, when calling
ocr_predictor
multiple times with one image, it returns different outputs sometimes.I tried setting
torch.manual_seed(0)
in the script where theocr_predictor
is called but it didn't work.Beta Was this translation helpful? Give feedback.
All reactions