use MXNET Time , The first step is to make a match mxnet Required input format .

When our task is :x It's an image , then y Yes many ( Or single ) When the label is output , We can make a match mxnet Required .rec format :

See details mxnet course :https://mxnet.incubator.apache.org/api/scala/io.html

English official website process :




Chinese Notes :

① generate .lst file , format :

Index label_0 label_1 label_2 label_3path

path: Picture name .

② generate .rec file ( find toolim2rec Running files , to configure MXNET It's time to use make This tool is available only when compiling by )

Command line input :.../bin/im2rec            a.lst          Picture path /       
a.rec   label_width=4

③mx.io.ImageRecordIter load .rec Then train