Skip to content

Plot labels inconsistency #77

Open
@WarpGate795

Description

@WarpGate795

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions