Skip to content

How to use a Predictor to predict on batches? #645

Answered by zachgk
hmf asked this question in Q&A
Discussion options

You must be logged in to vote

To use the predictor with batches, just call predictor.batchPredict(...) instead. In this case, you would want to use a translator that translates single images at a time and the StackBatchifier. It batches any size so no modifications are necessary for the last partial batch.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zachgk
Comment options

@hmf
Comment options

Answer selected by hmf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants