简体   繁体   English

Keras ImageDataGenerator 亮度范围

[英]Keras ImageDataGenerator brightness range

In the docs for Keras ImageDataGenerator , there is reference to an arg called brightness_range (default None ).在 Keras ImageDataGenerator文档中,引用了一个名为brightness_range的参数(默认为None )。 The documentation says that this arg accepts文档说这个 arg 接受

Tuple or list of two floats.元组或两个浮点数的列表。 Range for picking a brightness shift value from.从中选择亮度偏移值的范围。

That is extremely ambiguous.这是非常模棱两可的。 Does it mean a float within range (0,255)?这是否意味着范围内的浮点数(0,255)? Or does it mean a float within range (0,1)?或者它是否意味着范围(0,1)内的浮点数? The lack of specificity suggests that both would work, but I don't know how this tool is meant to be used.缺乏特异性表明两者都可以工作,但我不知道这个工具是如何使用的。 Is there any further documentation out there or general best practices for using this arg?是否有任何进一步的文档或使用此 arg 的一般最佳实践?

As this article shows, 0 means no brightness (completely black), 1 means maximum brightness (no change), and anything above just makes the image brighter.本文所示, 0表示无亮度(全黑), 1表示最大亮度(无变化),以上任何内容只会使图像更亮。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM