doonny / PipeCNN

An OpenCL-based FPGA Accelerator for Convolutional Neural Networks
Apache License 2.0
1.23k stars 370 forks source link

Doubt about "void loadImageToBuffer() function" in host when using Batch size>1 #80

Closed manojrohit closed 6 years ago

manojrohit commented 6 years ago

I understand that based on the input "num" the picture is selected from the database and it is vectorized.

But I didn't understand why we are loading the same image in the entire batch? Shouldn't we supposed to feed different pictures?

doonny commented 6 years ago

Batch is used only for testing of performance. You can modify the code to add multiple images when reading from real pics.