Skip to content
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

Failed to find data adapter that can handle input: <class 'dataloader.DataGenerator'>, <class 'NoneType'> #3

Open
VNFace opened this issue Dec 20, 2021 · 1 comment

Comments

@VNFace
Copy link

VNFace commented Dec 20, 2021

Cho mình hỏi chạy đến đoạn model.fit_generator nó bị lỗi này thì fix như thế nào vậy?

Total params: 518,962
Trainable params: 518,962
Non-trainable params: 0


None
train_classifer_keras.py:116: UserWarning: Model.fit_generator is deprecated and will be removed in a future version. Please use Model.fit, which supports generators.
model.fit_generator(train_generator, epochs=10, verbose=1, validation_data=valid_generator)
Traceback (most recent call last):
File "train_classifer_keras.py", line 116, in
model.fit_generator(train_generator, epochs=10, verbose=1, validation_data=valid_generator)
File "C:\Python37\lib\site-packages\keras\engine\training.py", line 2030, in fit_generator
initial_epoch=initial_epoch)
File "C:\Python37\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "C:\Python37\lib\site-packages\keras\engine\data_adapter.py", line 991, in select_data_adapter
_type_name(x), _type_name(y)))
ValueError: Failed to find data adapter that can handle input: <class 'dataloader.DataGenerator'>, <class 'NoneType'>

@HoaNguyen55
Copy link

HoaNguyen55 commented Sep 28, 2022

Hi , please help to fix this issue ASAP. @dangvansam98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants