Should ImageDataGenerator().apply_transform raise an error if the transform_parameters don't match any of the accepted keys?
I have an autotuning script that takes in the transform_parameters as a cli argument and applies them. It fails silently (doesn't manipulate the image) when the keys aren't in the accepted list.
I'm thinking I'll check the transform_parameters against the list of accepted keys, but keeping a hard coded list of the accepted keys doesn't feel very maintainable.
Should
ImageDataGenerator().apply_transform
raise an error if thetransform_parameters
don't match any of the accepted keys?I have an autotuning script that takes in the
transform_parameters
as a cli argument and applies them. It fails silently (doesn't manipulate the image) when the keys aren't in the accepted list.I'm thinking I'll check the
transform_parameters
against the list of accepted keys, but keeping a hard coded list of the accepted keys doesn't feel very maintainable.