AttributeError: module 'lightly.models' has no attribute 'modules'
See original GitHub issueI run into the following error when trying to use NNCLR’s NN memory bank.
Traceback (most recent call last):
File "train_nnclr.py", line 295, in <module>
model = NNCLRModel(backbone = backbone)
File "train_nnclr.py", line 164, in __init__
nn_replacer = lightly.models.modules.nn_memory_bank.NNmemoryBankModule(size=2** 16)
AttributeError: module 'lightly.models' has no attribute 'modules'
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
AttributeError: 'module' object has no attribute - Stack Overflow
Now I understand the main issue. This time my problem was importing Serializers ( django and restframework ) from different modules such as...
Read more >lightly.models — lightly 1.2.38 documentation - lightly-docs
The lightly.models.modules package provides reusable modules. This package contains reusable modules such as the NNmemoryBankModule which can be combined with ...
Read more >PYTHON : AttributeError: 'module' object has no attribute 'model'
PYTHON : AttributeError : ' module ' object has no attribute ' model ' [ Gift : Animated Search Engine : https://www.hows.tech/p/recommended.html ] ......
Read more >Use Keras Deep Learning Models with Scikit-Learn in Python
In this post, you will discover how you can use deep learning models from Keras with the scikit-learn library in Python.
Read more >PyXLL User Guide
modules = <add the name of your new module here>. [PYTHON] ... AttributeError: module ... ˓→has no attribute 'CLSIDToPackageMap'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, we will fix it ASAP. In the meantime you can use this workaround:
The error most likely stems from a typo in the code: @etetteh used
NNmemoryBankModule
instead of the correctNNMemoryBankModule
.The following lines work: