How to process batch images in CNN using FINN? #1029
Answered
by
fpjentzsch
Arbiter-glitch
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
fpjentzsch
Apr 8, 2024
Replies: 1 comment 1 reply
-
Hi, 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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Arbiter-glitch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.