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

Speaker Diarizations get_segmentations() raises for several input type variants #1684

Open
bschreck opened this issue Apr 5, 2024 · 0 comments

Comments

@bschreck
Copy link

bschreck commented Apr 5, 2024

Tested versions

  • tested in 3.1

System information

macOs 13.6 - pyannote 3.1 - M2 air

Issue description

2 variants that according to the docstring should be correct inputs instead raise a ValueError:

pipeline=Pipeline.from_pretrained(
            "pyannote/speaker-diarization-3.1", use_auth_token=os.environ["HF_API_KEY"]
        )

audio = Audio()({'waveform': waveform, 'sample_rate': sample_rate}) # waveform is 2d numpy array
segmentations = pipeline.get_segmentations(audio)  # raises
segmentations = pipeline.get_segmentations({'waveform': waveform, 'sample_rate': sample_rate})  # raises
segmentations = pipeline.get_segmentations({'waveform': torch.from_numpy(waveform), 'sample_rate': sample_rate})  # succeeds

Minimal reproduction example (MRE)

see above

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

1 participant