disable the keras "Found # images belonging to # classes." message

Viewed 218

Is there some way to disable this diagnostic message? It's driving me nuts. It's either in the DataGenerator class or the flow_from_directory method

1 Answers

As absurd as it sounds, it appears that: no, there is no way.

It is an unconditional print (no logging, just a raw dog print).

By the way, there is an (apparently ignored / forgotten) open issue on GitHub.

But, we can use the contextlib workaround.

Related