question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'module' object has no attribute 'imagenet_utils'

See original GitHub issue

Hi,

I am training using csv files on a custom dataset and when I start training I am getting the following error:

Traceback (most recent call last): File "keras_retinanet/bin/train.py", line 442, in <module> main() File "keras_retinanet/bin/train.py", line 401, in main weights = backbone.download_imagenet() File "keras_retinanet/bin/../../keras_retinanet/models/resnet.py", line 50, in download_imagenet return keras.applications.imagenet_utils.get_file( AttributeError: 'module' object has no attribute 'imagenet_utils'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
huxian0402commented, Jun 11, 2018

Thank you, i have resolved it by adding import keras.applications.imagenet_utils
in resnet.py @Lakshya-Kejriwal

0reactions
hgaisercommented, Jun 7, 2018

I see, Keras 2.2.0 was released… for now, it’s easiest to stick to Keras 2.1.6 until compatibility is fixed.

On Thu, 7 Jun 2018, 22:45 Lakshya Kejriwal, notifications@github.com wrote:

It had that file. I solved it by first importing the module imagenet_utils in resnet.py. No idea why it behaved in such a way

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fizyr/keras-retinanet/issues/494#issuecomment-395558802, or mute the thread https://github.com/notifications/unsubscribe-auth/AArtajMsfQFt_kVb35xikUF4dsdS-pc4ks5t6ZDQgaJpZM4UfEA5 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'module' object has no attribute - Stack Overflow
E.g. I had a module called commands which is also a Python library module. This proved to be difficult to track down as...
Read more >
tf.keras.applications.imagenet_utils | TensorFlow v2.11.0
Utilities for ImageNet data preprocessing & prediction decoding.
Read more >
[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww▻Instagram ...
Read more >
'module' object has no attribute in 3minutes - YouTube
" AttributeError : object has no attribute "Understand how to trouble shoot the error message. Examples used in the video:When you append a ......
Read more >
AttributeError: 'module' object has no attribute and ImportError
This video covers the AttributeError : ' module ' object has no attribute and ImportError: No module name errors in Python.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found