1. 把内存变成硬盘,把须要读的数据塞到里面去,加快了io。html
把内存当硬盘,提速你的linux系统linux
2. 使用英伟达的 git
github
app
ide
post
pt : https://discuss.pytorch.org/t/how-to-speed-up-the-data-loader/13740/3ui
5. 将原始数据保存为lmdb格式url
博客:Efficiently processing large image datasets in Pythonspa
6. Python简易实现并行操做