keras-team / keras-preprocessing

Utilities for working with image data, text data, and sequence data.
Other
1.02k stars 444 forks source link

x = self.preprocessing_function(x) TypeError: 'str' object is not callable #258

Closed gjamesli2126 closed 4 years ago

gjamesli2126 commented 4 years ago

Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or on the Keras Slack channel instead of opening a GitHub issue.

Thank you!

gjamesli2126 commented 4 years ago

Is it really calling a string?

rragundez commented 4 years ago

You're setting preprocessing_function as the string "gray_to_rgb", while it should be a function.