Assume the dataset name is 'xyz'
cd ${your_mindspore_home}/example/convert_to_mindrecord
cp -r template xyz
Edit dictionary data generator
cd ${your_mindspore_home}/example/convert_to_mindrecord
vi xyz/mr_api.py
Two API, 'mindrecord_task_number' and 'mindrecord_dict_data', must be implemented
Tricky for parallel run
cd ${your_mindspore_home}/example/convert_to_mindrecord
python writer.py --mindrecord_script imagenet [...]