-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RandomBrightness layer as one of the image KPL.
This change is ported from keras-team/keras-cv#122. This layer is considered as a core KPL, since we already have RandomContrast. All the image related KPL will be exposed in the keras-cv later as well. PiperOrigin-RevId: 428849704
- Loading branch information
1 parent
01c906c
commit 912f6d9
Showing
4 changed files
with
452 additions
and
0 deletions.
There are no files selected for viewing
227 changes: 227 additions & 0 deletions
227
keras/api/golden/v2/tensorflow.keras.layers.-random-brightness.pbtxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
path: "tensorflow.keras.layers.RandomBrightness" | ||
tf_class { | ||
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomBrightness\'>" | ||
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>" | ||
is_instance: "<class \'keras.engine.base_layer.Layer\'>" | ||
is_instance: "<class \'tensorflow.python.module.module.Module\'>" | ||
is_instance: "<class \'tensorflow.python.training.tracking.autotrackable.AutoTrackable\'>" | ||
is_instance: "<class \'tensorflow.python.training.tracking.base.Trackable\'>" | ||
is_instance: "<class \'keras.utils.version_utils.LayerVersionSelector\'>" | ||
is_instance: "<type \'object\'>" | ||
member { | ||
name: "activity_regularizer" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "compute_dtype" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "dtype" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "dtype_policy" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "dynamic" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "inbound_nodes" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "input" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "input_mask" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "input_shape" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "input_spec" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "losses" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "metrics" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "name" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "name_scope" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "non_trainable_variables" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "non_trainable_weights" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "outbound_nodes" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "output" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "output_mask" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "output_shape" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "stateful" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "submodules" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "supports_masking" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "trainable" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "trainable_variables" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "trainable_weights" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "updates" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "variable_dtype" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "variables" | ||
mtype: "<type \'property\'>" | ||
} | ||
member { | ||
name: "weights" | ||
mtype: "<type \'property\'>" | ||
} | ||
member_method { | ||
name: "__init__" | ||
argspec: "args=[\'self\', \'factor\', \'seed\'], varargs=None, keywords=kwargs, defaults=[\'None\'], " | ||
} | ||
member_method { | ||
name: "add_loss" | ||
argspec: "args=[\'self\', \'losses\'], varargs=None, keywords=kwargs, defaults=None" | ||
} | ||
member_method { | ||
name: "add_metric" | ||
argspec: "args=[\'self\', \'value\', \'name\'], varargs=None, keywords=kwargs, defaults=[\'None\'], " | ||
} | ||
member_method { | ||
name: "add_update" | ||
argspec: "args=[\'self\', \'updates\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "add_variable" | ||
argspec: "args=[\'self\'], varargs=args, keywords=kwargs, defaults=None" | ||
} | ||
member_method { | ||
name: "add_weight" | ||
argspec: "args=[\'self\', \'name\', \'shape\', \'dtype\', \'initializer\', \'regularizer\', \'trainable\', \'constraint\', \'use_resource\', \'synchronization\', \'aggregation\'], varargs=None, keywords=kwargs, defaults=[\'None\', \'None\', \'None\', \'None\', \'None\', \'None\', \'None\', \'None\', \'VariableSynchronization.AUTO\', \'VariableAggregationV2.NONE\'], " | ||
} | ||
member_method { | ||
name: "build" | ||
argspec: "args=[\'self\', \'input_shape\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "call" | ||
argspec: "args=[\'self\', \'inputs\', \'training\'], varargs=None, keywords=None, defaults=[\'True\'], " | ||
} | ||
member_method { | ||
name: "compute_mask" | ||
argspec: "args=[\'self\', \'inputs\', \'mask\'], varargs=None, keywords=None, defaults=[\'None\'], " | ||
} | ||
member_method { | ||
name: "compute_output_shape" | ||
argspec: "args=[\'self\', \'input_shape\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "compute_output_signature" | ||
argspec: "args=[\'self\', \'input_signature\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "count_params" | ||
argspec: "args=[\'self\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "finalize_state" | ||
argspec: "args=[\'self\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "from_config" | ||
argspec: "args=[\'cls\', \'config\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "get_config" | ||
argspec: "args=[\'self\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "get_input_at" | ||
argspec: "args=[\'self\', \'node_index\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "get_input_mask_at" | ||
argspec: "args=[\'self\', \'node_index\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "get_input_shape_at" | ||
argspec: "args=[\'self\', \'node_index\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "get_output_at" | ||
argspec: "args=[\'self\', \'node_index\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "get_output_mask_at" | ||
argspec: "args=[\'self\', \'node_index\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "get_output_shape_at" | ||
argspec: "args=[\'self\', \'node_index\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "get_weights" | ||
argspec: "args=[\'self\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "set_weights" | ||
argspec: "args=[\'self\', \'weights\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
member_method { | ||
name: "with_name_scope" | ||
argspec: "args=[\'cls\', \'method\'], varargs=None, keywords=None, defaults=None" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.