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

AttributeError: module 'keras.utils' has no attribute 'Sequence' #25

Open
alancarlosml opened this issue Dec 9, 2021 · 2 comments
Open

Comments

@alancarlosml
Copy link

Hi,
I'm getting this error messagem when runing:

$ python anchor_optimization\optimize_anchors.py test.csv

Traceback (most recent call last):
  File "E:\anchor-optimization\anchor_optimization\optimize_anchors.py", line 11, in <module>
    from keras_retinanet.preprocessing.csv_generator import _open_for_csv
  File "C:\Users\USER\anaconda3\envs\keras_env\lib\site-packages\keras_retinanet\preprocessing\csv_generator.py", line 18, in <module>
    from .generator import Generator
  File "C:\Users\USER\anaconda3\envs\keras_env\lib\site-packages\keras_retinanet\preprocessing\generator.py", line 39, in <module>
    class Generator(keras.utils.Sequence):
AttributeError: module 'keras.utils' has no attribute 'Sequence'

Tensorflow version: 2.7.0

Any help?

@furkanaydgn
Copy link

Same problem with you

@kirnh
Copy link

kirnh commented Mar 20, 2023

Changing Generator(keras.utils.Sequence) to Generator(keras.utils.all_utils.Sequence) should fix this.

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

3 participants