You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering this warning when using ImageDataGenerator.flow_from_dataframe:
/usr/local/lib/python3.11/dist-packages/keras/src/trainers/data_adapters/py_dataset_adapter.py:121: UserWarning: Your `PyDataset` class should call `super().__init__(**kwargs)` in its constructor. `**kwargs` can include `workers`, `use_multiprocessing`, `max_queue_size`. Do not pass these arguments to `fit()`, as they will be ignored
I'm not subclassing PyDataset directly.
Proposed Fix:
Update the constructor of the relevant PyDataset subclass to call super().__init__(**kwargs), so that keyword arguments (including workers, use_multiprocessing, and max_queue_size) are initialized.
I'm encountering this warning when using
ImageDataGenerator.flow_from_dataframe
:I'm not subclassing PyDataset directly.
Proposed Fix:
Update the constructor of the relevant PyDataset subclass to call
super().__init__(**kwargs)
, so that keyword arguments (including workers, use_multiprocessing, and max_queue_size) are initialized.Environment:
Platform: Google Colab T4 GPU High-Ram
Operating System: Ubuntu 22.04.4 LTS
Python version: 3.11.11
numpy version: 2.0.2
pandas version: 2.2.2
tensor version: 2.18.0
keras 3.8.0
keras-hub 0.18.1
keras-nlp 0.18.1
tf_keras 2.18.0
Thanks, Keras team, for your time on this!
The text was updated successfully, but these errors were encountered: