Skip to content

How to process batch images in CNN using FINN? #1029

Answered by fpjentzsch
Arbiter-glitch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
batch size is not really a thing for the dataflow accelerators FINN generates. They operate on a continuous stream of input data, one frame after the other, so the batch size is essentially infinite. For this reason, N=1 is assumed in many places and you should export your model with batch size = 1.

The PYNQ driver FINN generates for you still supports batching, i.e., you can give a batch of frames to the driver and it will stream them frame by frame to the accelerator for processing.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Arbiter-glitch
Comment options

Answer selected by Arbiter-glitch
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