8000 ImageDataGenerator cannot be imported in the gtsrb example · Issue #3 · NeuralNetworkVerification/VeriX · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ImageDataGenerator cannot be imported in the gtsrb example #3

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

Open
Tempate opened this issue May 17, 2025 · 1 comment
Open

ImageDataGenerator cannot be imported in the gtsrb example #3

Tempate opened this issue May 17, 2025 · 1 comment

Comments

@Tempate
Copy link
Tempate commented May 17, 2025

ImageDataGenerator cannot be imported in the gtsrb example.

$ python gtsrb.py
Traceback (most recent call last):
  File "VeriX/gtsrb.py", line 6, in <module>
    from keras.preprocessing.image import ImageDataGenerator
ImportError: cannot import name 'ImageDataGenerator' from 'keras.preprocessing.image' (.pyenv/versions/verix-env/lib/python3.10/site-packages/keras/api/preprocessing/image/__init__.py)
@Tempate
Copy link
Author
Tempate commented May 17, 2025

The fix is to change the import to:

from tensorflow.keras.preprocessing.image import ImageDataGenerator

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

1 participant
0