java – 如何创建类似MNIST数据集的文件

所以我有一堆图像(PNG),它们的名字可以用作标签.是否有工具或示例如何我可以拍摄这些图像并创建像MNIST IDX一样的数据集.

有很多关于如何阅读它们的例子,但没有关于如何创建它们的例子.

任何帮助将不胜感激!

最佳答案 这可以帮助.

The -images- files were written using the function save-idx3-ubyte and the -labels- files with the function save-idx1-ubyte. The functions in questions are defined in lush/lsh/libidx/idx-io.lsh The file format is described in the section “IDX file format for compilable I/O” which is under “standard libraries” -> “Tensor/Matrix/Scalar/Vector libraries” -> “IDX reading and writing”.

The 32-bit ints in the header of the files may be byte-swapped.

– Yann

http://sourceforge.net/p/lush/mailman/message/28879896/

点赞