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

ImportError: cannot import name 'np_utils' in ImageDataGenerator #44765

Closed
rakeshmothukuru1 opened this issue Nov 11, 2020 · 1 comment · Fixed by #44764
Closed

ImportError: cannot import name 'np_utils' in ImageDataGenerator #44765

rakeshmothukuru1 opened this issue Nov 11, 2020 · 1 comment · Fixed by #44764
Assignees
Labels
comp:keras Keras related issues type:docs-bug Document issues

Comments

@rakeshmothukuru1
Copy link

rakeshmothukuru1 commented Nov 11, 2020

The TensorFlow docs are open source! To get involved, read the documentation
contributor guide: https://www.tensorflow.org/community/contribute/docs

URL(s) with the issue:

Please provide a link to the documentation entry, for example:
https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/ImageDataGenerator#examples_2

Description of issue (what needs changing):

Clear description: np_utils is no longer available. It should be replaced with utils. Reproducible code is mentioned in this Colab.

For example, why should someone use this method? How is it useful? : Developers using ImageDataGenerator.flow use this code.

Correct links

Is the link to the source code correct? : Yes

Parameters defined

Are all parameters defined and formatted correctly? : Yes

Returns defined

Are return values defined? : Yes

Raises listed and defined

Are the errors defined? No

Usage example

Is there a usage example? : Yes

Request visuals, if applicable

Are there currently visuals? If not, will it clarify the content?

Submit a pull request?

Are you planning to also submit a pull request to fix the issue? See the docs
contributor guide: https://www.tensorflow.org/community/contribute/docs,
docs API guide: https://www.tensorflow.org/community/contribute/docs_ref and the
docs style guide: https://www.tensorflow.org/community/contribute/docs_style

@rmothukuru rmothukuru linked a pull request Nov 11, 2020 that will close this issue
@amahendrakar
Copy link
Contributor

Was able to reproduce the issue with TF v2.3 and TF-nightly. Please find the gist of it here. Thanks!

@amahendrakar amahendrakar added comp:keras Keras related issues type:docs-bug Document issues labels Nov 12, 2020
@amahendrakar amahendrakar assigned ymodak and unassigned amahendrakar Nov 12, 2020
@rmothukuru rmothukuru assigned rmothukuru and unassigned ymodak Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:keras Keras related issues type:docs-bug Document issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants