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

Plot labels inconsistency #77

Open
WarpGate795 opened this issue Feb 25, 2022 · 0 comments
Open

Plot labels inconsistency #77

WarpGate795 opened this issue Feb 25, 2022 · 0 comments

Comments

@WarpGate795
Copy link

WarpGate795 commented Feb 25, 2022

Hi, I was recently working on DER and found that Annotation shows inconsistency between plot and legend when tensors are used.
For example,

from pyannote.core import Annotation, Segment
import torch
import numpy as np

annotation = Annotation()
for i in range(10):
    annotation[Segment(i, i + 1)] = torch.tensor(0)
annotation

Executing the above code would produce the following output

image

However assigning int 0 rather tensor produces the accurate plot,

image

If only numpy data is being handled properly, there is no exception generated when tensors are used.

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