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

Training speed slower than Non-local attention #93

Closed
noobliang opened this issue Jan 11, 2021 · 2 comments
Closed

Training speed slower than Non-local attention #93

noobliang opened this issue Jan 11, 2021 · 2 comments

Comments

@noobliang
Copy link

I found add a module of Non-local attention which just add a little extra time cost about 0.4s each iter. But if I add a CC-attention take R==1 , the train time each iter about 0.7s, and 1.0s if R==2. It's not like the description in your paper. I dont know why. Can anyone explain it .

@speedinghzl
Copy link
Owner

@noobliang Thanks for your attention. The inefficient program implementation results in a slower speed than non-local attention. In term of computation cost and memory usage, the CCNet still have advantages mentioned in the paper. Looking forward to more efficient program implementation.

@noobliang
Copy link
Author

@noobliang Thanks for your attention. The inefficient program implementation results in a slower speed than non-local attention. In term of computation cost and memory usage, the CCNet still have advantages mentioned in the paper. Looking forward to more efficient program implementation.

Well , thank you reply. I found it almost useless for my segmentation network, it may be the positive samples of the picture too few.

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

2 participants