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

online diarizer #7114

Closed
jeremy110 opened this issue Jul 27, 2023 · 2 comments
Closed

online diarizer #7114

jeremy110 opened this issue Jul 27, 2023 · 2 comments
Labels

Comments

@jeremy110
Copy link

Hi!

I was trying an online diarizer with reference to this PR(#5609). I am using the Nemo Frame VAD and modified it to directly output vad_timestamps (e.g., tensor([[0.0000, 1.5200, 1.5300]])). Then, I call diarize_step function every two seconds, as I'm not quite sure what one "step" (1 frame) represents. However, I only get one speaker output each time, despite calling diarize_step multiple times. Could you please help me identify what might be going wrong? I will provide some relevant code snippets and logs below. Thank you in advance.

MODEL_CONFIG = "/workspace/diar_infer.yaml" 
cfg = OmegaConf.load(MODEL_CONFIG)
online_diar = OnlineClusteringDiarizer(cfg)
filepath = "/workspace/test_60s.wav"
waveform, _ = torchaudio.load(filepath)
vad_model = fvad("/workspace/model/vad_multilingual_frame_marblenet.nemo", "/workspace/diar_infer.yaml")
print(f"waveform.size() {waveform.size())}")
online_diar.buffer_end = 60
scale = 2
for step in range(20):
    start = step * scale
    online_diar.frame_start  = start
    s =  start * 16000
    e = s + scale * 16000  #(step + 1) * scale * 16000
    cur_wav = waveform[:,: e]
    vad_timestamps = vad_model.infer(cur_wav[:, s: ]) + start
    print(f"vad_timestamps: {vad_timestamps}")
    diar_hyp = online_diar.diarize_step(cur_wav.squeeze(0), vad_timestamps)
    print(f"step: {step}, diar_hyp: {diar_hyp}")

log_online1.txt

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Aug 27, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2023

This issue was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant