Skip to content

Commit

Permalink
Fix a ref_channel-related issue in enh_inference
Browse files Browse the repository at this point in the history
  • Loading branch information
Emrys365 committed Feb 28, 2023
1 parent 84ccae7 commit 4e3e14e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions espnet2/bin/enh_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ def __init__(
"Overwrite enh_model.separator.ref_channel with {}".format(ref_channel)
)
enh_model.separator.ref_channel = ref_channel
if hasattr(enh_model.separator, "beamformer"):
enh_model.separator.beamformer.ref_channel = ref_channel
self.ref_channel = ref_channel
else:
self.ref_channel = enh_model.ref_channel
Expand Down

0 comments on commit 4e3e14e

Please sign in to comment.