Skip to content
Snippets Groups Projects
Commit a2745ab6 authored by Chin-Yun Yu's avatar Chin-Yun Yu
Browse files

feat: use mono dialog

parent f39bdd1e
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,10 @@ class HDemucs(IdentitySeparationModel):
self.hdemucs(mixed_sound_array).squeeze().permute(1, 2, 0).cpu().numpy()
)
seperated[self.instruments_idx["dialog"]] = seperated[
self.instruments_idx["dialog"]
].mean(axis=1, keepdims=True)
# input_length = len(left_mixed_arr)
separated_music_arrays = {}
output_sample_rates = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment