Skip to content

Commit

Permalink
Fix receptive field calc
Browse files Browse the repository at this point in the history
  • Loading branch information
israelg99 committed Mar 2, 2017
1 parent 747ba18 commit d7bd881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eva/models/wavenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ def Wavenet(input_shape, filters, depth, stacks, last=0, h=None, build=True):
return model

def compute_receptive_field(sample_rate, depth, stacks):
receptive_field = stacks * (2 ** depth * 2) - (stacks - 1)
receptive_field = stacks * (2 ** depth) - (stacks - 1)
receptive_field_ms = (receptive_field * 1000) / sample_rate
return receptive_field, receptive_field_ms

0 comments on commit d7bd881

Please sign in to comment.