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

ModuleNotFoundError: No module named 'attention' #40

Open
dwijaybane opened this issue Aug 28, 2021 · 3 comments
Open

ModuleNotFoundError: No module named 'attention' #40

dwijaybane opened this issue Aug 28, 2021 · 3 comments

Comments

@dwijaybane
Copy link

When i run the test.py i am having issue with loading the module. The module is in the same directory and the code also seems correct. What is going wrong ? please help.

seNet/dares.py", line 12, in <module>
    from attention import PAM_Module
ModuleNotFoundError: No module named 'attention'
@oshholail
Copy link

Train.py should be in the same folder of dares.py
i solved it with this solution

@KRITI1997
Copy link

For me it worked by using '.' while importing files .For example : from .attention import PAM_Module.

@walking-shadow
Copy link

You can refer to this bolg https://blog.csdn.net/weixin_39875161/article/details/103215413

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

4 participants