-
Notifications
You must be signed in to change notification settings - Fork 74.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImageDataGenerator should have a verbosity argument #42681
ImageDataGenerator should have a verbosity argument #42681
Comments
Btw., standalone Keras (at least 2.2.4) did not print this message. I have now added this to the issue description. |
I am a new contributor to tensorflow, and changed and added feature. But i can't push branch. shows error like this
|
@anuragcp, you have to push it to your own fork, then create a pull request. |
Okey thanks. Let me check. |
I now found the relevant code location: It's in directory_iterator.py of the project keras_preprocessing! Here is a similar issue: keras-team/keras-preprocessing#304 . |
Hi @jondo , is this what you are looking for to implement, I don't know how correct this https://www.tensorflow.org/api_docs/python/tf/compat/v1/logging is as it is still in version 1 and there seem to be no ports to 2 and the only reference to it I found was for
in |
According to the release notes, current Tensorflow 2.3.0 introduced a new Keras dataset generation utility (emphasis added):
This means that I'll simply comment out the annoying |
tf.keras.preprocessing.image.ImageDataGenerator will be deprecated in upcoming Tensorflow version and is not recommended for new code. Prefer loading images with tf.keras.utils.image_dataset_from_directory and transforming the output tf.data.Dataset with preprocessing layers. |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
System information
Describe the feature and the current behavior/state.
When calling
tensorflow.keras.preprocessing.image.ImageDataGenerator.flow_from_directory
, currently a message likeFound 1437 images belonging to 2 classes.
is printed.I suggest adding an optional keyword argument
verbose
with default settingverbose=1
to this function, such thatverbose=0
suppresses this printed message. See e.g. theverbose
keywords oftf.keras.Model.fit
, or of theEarlyStopping
orModelCheckpoint
callbacks.Will this change the current api? How?
This will add an optional keyword argument.
Who will benefit with this feature?
batch_size
values during hyperparameter tuning. In this case, the repeated message is uninteresting and distracts from the interesting output and should therefore be omittable.The text was updated successfully, but these errors were encountered: