Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

AttributeError: module 'pycls.core' has no attribute 'builders' #127

Open
varunnrao opened this issue Feb 2, 2021 · 2 comments
Open

AttributeError: module 'pycls.core' has no attribute 'builders' #127

varunnrao opened this issue Feb 2, 2021 · 2 comments

Comments

@varunnrao
Copy link

Traceback (most recent call last):
  File "tools/train_net.py", line 12, in <module>
    import pycls.core.trainer as trainer
  File "/pycls/pycls/core/trainer.py", line 11, in <module>
    import pycls.core.builders as builders
  File "/pycls/pycls/core/builders.py", line 12, in <module>
    from pycls.models.anynet import AnyNet
  File "/pycls/pycls/models/__init__.py", line 10, in <module>
    from pycls.models.model_zoo import effnet, regnetx, regnety, resnet, resnext
  File "/pycls/pycls/models/model_zoo.py", line 12, in <module>
    import pycls.core.builders as builders
AttributeError: module 'pycls.core' has no attribute 'builders'```


Is there something wrong with the directory structure I'm executing from?
@leonxu1
Copy link

leonxu1 commented Mar 1, 2021

#113 suggests commenting out the import in /pycls/pycls/models/__init__.py.

@Frag17
Copy link

Frag17 commented Aug 4, 2022

try import pycls.core.builders
not using “as“
you will find no problem and I don't know why.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants