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

please explaing why do we have apperture=-1, in the attention class vasnet_model.py #16

Open
VinACE opened this issue Aug 6, 2020 · 1 comment

Comments

@VinACE
Copy link

VinACE commented Aug 6, 2020

def init(self, apperture=-1, ignore_itself=False, input_size=1024, output_size=1024):
self.apperture = apperture

here the apperture is set to -1, and in the forward you are checking,
if self.apperture > 0:
#Set attention to zero to frames further than +/- apperture from the current one
when does these condition appears.

@ok1zjf
Copy link
Owner

ok1zjf commented Aug 6, 2020

Hi VinACE,
The apperture is not used in this publication/code version. We do use it in our follow up work which has not been published yet.
Basically, the apperture<=0 disables the apperture which is the default config in this code.

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