![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据预处理
William_Yue91
从走图像长征路,专注计算机视觉算法移植与应用
展开
-
数据预处理(常用增强技术)
参考文献:Data Augmentation | How to use Deep Learning when you have Limited Dataauthor网址:https://thatbrguy.github.io/参考网址1:http://baijiahao.baidu.com/s?id=1599775088482026500&wfr=spider&for=pc参...转载 2019-03-22 11:16:21 · 1086 阅读 · 0 评论 -
数据增强库Augmentor使用,以及批量复制到指定文件,删除原文件
安装:pip install Augmentor设置路径:p=Augmentor.Pipeline(yourpath)设置所需的变化:probability为图片的比例p.rotate90(probability=1.0) 旋转90°p.rotate(probability=0.5,max_left_rotation=25,max_right_rotation=25)p.skew_ti...原创 2019-03-26 10:54:23 · 1373 阅读 · 0 评论 -
keras 读取多个hdf5文件进行训练的问题与解决
用keras进行大数据训练,为了加快训练,需要提前制作训练集。由于HDF5的特性,所有数据需要一次性读入到内存中,才能保存。为此,我采用分批次分为2个以上HDF5进行存储。1、先读取每个标签下的图片,并设置标签def load_dataset(path_name,data_path): images = [] labels = [] train_images = [...原创 2019-04-26 17:19:04 · 2295 阅读 · 0 评论