如何解决图像数据集归一化-部分归一化
问题是我有一些已经标准化的图像,有些还没有标准化。
下面的代码将规范化所有图像,但会与已经规范化的图像混淆吗?这里的工作是什么?
image_gen = ImageDataGenerator(rotation_range=20,# rotate the image 20 degrees
width_shift_range=0.10,# Shift the pic width by a max of 5%
height_shift_range=0.10,# Shift the pic height by a max of 5%
rescale=1/255,# Rescale the image by normalzing it.
shear_range=0.1,# Shear means cutting away part of the image (max 10%)
zoom_range=0.1,# Zoom in by 10% max
horizontal_flip=True,# Allo horizontal flipping
fill_mode='nearest' # Fill in missing pixels with the nearest filled value
)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。