Well, as far as I know, your official github does not allow batches of more than 1 images, does it?
But yes I tested on your official github with batches of 1 and it works as expected. I even tried to replace your file loadImage.cpp (and header) with mine and I got the same results, this is why I was not worried about my custom image loading file.
To clarify a little, I took the files required to build the imagenet-console target from [url]https://github.com/dusty-nv/jetson-inference[/url]. Then I replaced the loadImage files with mine. I customized the CMake to fit my only target. Everything worked as expected.
Then, I learned about [url]https://github.com/yankailab/jetson-inference-batch[/url] and wanted to integrate this feature in my custom repo, so I took the methods I needed from imageNet.h/cpp/cu and modified my imagenet-console.cpp to fit the new requirements. And I got this offset issue.
Could it be the image format? My custom model eats B&W, fixed sized images, while googlenet eats random sized, 3 or 4 channels images.