These scripts can be useful for developing/testing nnc. Usage and purpose of the scripts can be found in comments in their source code.

Note that these scripts are just development artifacts and are not supposed to go into production in any form.

jpeg2hdf5.py: prepare ‘.hdf5’ files from ‘.JPEG’ to be used by nnkit. Can also convert those ‘.JPEG’s to binary format along the way.

‘testcases’ folder structure: At the moment we use the following structure: a folder for a model contains ‘models’ and ‘testcases’ subfolders. The ‘models’ subfolder contains model that we run inference on, ‘testcases’ subfolder contains a ‘testcase*’ folder for each different testcase. Each of those folders in turn contain ‘input’ with a ‘.JPEG’ file (and ‘.hdf5’ and ‘.dat’ files after running jpeg2hdf5 script), and ‘output’ folder where inference results are stored.