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簡易實現並行操做