Pytorch IO提速

1. 把內存變成硬盤,把須要讀的數據塞到裏面去,加快了io。html

 

Optimizing PyTorch training code

如何給你PyTorch裏的Dataloader打雞血

輕輕鬆鬆爲你的Linux系統建立RAM Disk

把內存當硬盤,提速你的linux系統linux

Linux建立使用內存硬盤(RAM DISK)

 

2. 使用英偉達的 NVIDIA/DALI 模塊git

A library containing both highly optimized building blocks and an execution engine for data pre-processing in deep learning applicationsgithub

Pytorch_exampleapp

博客: Introducing GPU Instances: Using Deep Learning to Obtain Frontal Rendering of Facial Images

DALI 文檔 : dali-pytorch

 

3. 使用英偉達的 NVIDIA/apex 模塊ide

 

 

4. 將原始圖像保存爲pt或hdf5文件post

hdf5: Saving and loading a large number of images (data) into a single HDF5 file  (圖片轉換成HDF5文件(加載,保存))

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

一行 Python 代碼實現並行 

相關文章
相關標籤/搜索