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

When I pass Audio File I get this error any ideas? #23

Closed
CreativeSelf0 opened this issue Jan 20, 2022 · 12 comments
Closed

When I pass Audio File I get this error any ideas? #23

CreativeSelf0 opened this issue Jan 20, 2022 · 12 comments
Labels
bug Something isn't working

Comments

@CreativeSelf0
Copy link

ValueError: Segments must not be empty.

@juanmc2005
Copy link
Owner

Hi @CreativeSelf0, could you please provide a code extract and the complete stack trace of the error? Also, what version are you using?

@CreativeSelf0
Copy link
Author

CreativeSelf0 commented Jan 22, 2022

Hey, I'm using latest version
Code Snippet:
python -m diart.demo my-own-file.wav

More Details:
/home/test/anaconda3/envs/diarization/lib/python3.8/site-packages/pytorch_lightning/core/memory.py:16: LightningDeprecationWarning: pytorch_lightning.core.memory.get_memory_profile and pytorch_lightning.core.memory.get_gpu_memory_map have been moved to pytorch_lightning.utilities.memory since v1.5 and will be removed in v1.7.
rank_zero_deprecation(
/home/test/anaconda3/envs/diarization/lib/python3.8/site-packages/pytorch_lightning/core/memory.py:25: LightningDeprecationWarning: pytorch_lightning.core.memory.LayerSummary and pytorch_lightning.core.memory.ModelSummary have been moved to pytorch_lightning.utilities.model_summary since v1.5 and will be removed in v1.7.
rank_zero_deprecation(
Traceback (most recent call last):
File "/home/test/anaconda3/envs/diarization/lib/python3.8/site-packages/rx/core/operators/map.py", line 37, in on_next
result = _mapper(value)
File "/home/test/anaconda3/envs/diarization/lib/python3.8/site-packages/rx/core/operators/scan.py", line 36, in projection
accumulation = accumulator(accumulation, x)
File "/home/test/anaconda3/envs/diarization/lib/python3.8/site-packages/diart/operators.py", line 247, in accumulate
annotation = state.annotation.update(value.prediction)
File "/home/test/anaconda3/envs/diarization/lib/python3.8/site-packages/pyannote/core/annotation.py", line 552, in extrude
removed = Timeline([removed])
File "/home/test/anaconda3/envs/diarization/lib/python3.8/site-packages/pyannote/core/timeline.py", line 153, in init
raise ValueError('Segments must not be empty.')
ValueError: Segments must not be empty.

@juanmc2005
Copy link
Owner

I think this may be an issue with your pyannote.core version. Can you try with the latest version (4.3) ?

@ckliao-nccu
Copy link
Contributor

I'm using pyannote.core version 4.3 and also having this problem.

@juanmc2005
Copy link
Owner

Ok this is related to this line in pyannote.core that will apparently be removed in the next version (that hasn't been released yet).

I'll add the fix and release a new version, since this is going to block all demos in v0.2.

@juanmc2005
Copy link
Owner

@CreativeSelf0 @ckliao-nccu could you please install from the branch fix/extrude and try again? My local run with pyannote.core 4.3 is working fine now.

@CreativeSelf0
Copy link
Author

still no luck.
raise ValueError('Segments must not be empty.')

@juanmc2005
Copy link
Owner

@CreativeSelf0 did you install from the branch fix/extrude? Could you please paste the new stacktrace here so I can try to reproduce it from my end?

@ckliao-nccu
Copy link
Contributor

@CreativeSelf0 @ckliao-nccu could you please install from the branch fix/extrude and try again?

I got no error using fix/extrude. Except for the LightningDeprecationWarning .

@juanmc2005
Copy link
Owner

juanmc2005 commented Jan 26, 2022

@ckliao-nccu awesome. The warnings are normal, they come from pyannote.audio 2.0 (still in development).

I'll try to get the fix merged and release a new version today.

@ckliao-nccu
Copy link
Contributor

@juanmc2005 Thanks for your awesome work 👍

@juanmc2005
Copy link
Owner

juanmc2005 commented Jan 26, 2022

I just released version 0.2.1 with this fix (#25)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants