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 · 1 comment
Labels

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

Copy link

stale bot commented Oct 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 5, 2024
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