-
I need to run detection and recognition separately by manually passing the detection output as input to the recognition inference. I can't use the 'det_rec' mode in the inference api scripts since here the detection result will come as one of the inputs. Facing difficulties trying to override Any suggestions? |
Beta Was this translation helpful? Give feedback.
Answered by
Insktall
Apr 20, 2023
Replies: 1 comment 1 reply
-
Why not use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Modify the existing script: One option is to modify the existing script to accept the output of the detection model as input to the recognition model. Depending on the specific API you are using, this may involve modifying the forward or call methods as you mentioned, or it may require modifying other parts of the code. This approach can be more challenging, especially if you are not familiar with the API codebase, but it allows you to take advantage of the existing functionality and avoid duplicating effort. Write your own script: Another option is to write your own inference script that performs separate detection and recognition steps. This approach can be more flexible and allow for m…