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

Import keras_preprocessing, not keras.preprocessing. #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mepc36
Copy link

@mepc36 mepc36 commented Aug 25, 2022

The Keras library was split into a multi-repo in its 2.2 release, according to the Keras docs here:

The modules applications and preprocessing are now externalized to their own repositories ([keras-applications](https://github.com/keras-team/keras-applications) and [keras-preprocessing](https://github.com/keras-team/keras-preprocessing)).

Even though there is an explicitly locked dependency version in ~/requirements.txt, it looks like the code that actually does the import in this repo was never updated to make use of it.

I was getting a cannot import name 'pad_sequences' from 'keras.preprocessing.sequence' error unless I made this P.R.'s changes. See this SOF post here for more info.

If maintainer decides that this is a dependency issue that is really the user's responsibility to solve, please feel free to close with comment.

Thanks for the repo!

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

Successfully merging this pull request may close these issues.

1 participant