HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
18.96k stars 2.36k forks source link

Time Series horizontal scolling becomes unresponsive when time viewing window narrows (zooming in) #3838

Open noelbk opened 1 year ago

noelbk commented 1 year ago

Describe the bug

I am labelling a time series with 3 channels with about 3.6M samples per channel. Scrolling and marking is nice and fast when the page first loads. But, if I zoom in the time viewing window too small, scrolling performance becomes slow and unresponsive.

To Reproduce

  1. Create a TimeSeries Labelling Interface
<View>
    <!-- Control tag for region labels -->
    <TimeSeriesLabels name="label" toName="ts">
        <Label value="Run" background="red"/>
        <Label value="Walk" background="green"/>
        <Label value="Fly" background="blue"/>
        <Label value="Swim" background="#f6a"/>
        <Label value="Ride" background="#351"/>
    </TimeSeriesLabels>

    <!-- Object tag for time series data source -->
    <TimeSeries name="ts" 
      valueType="url" value="$csv" sep="," 
      fixedScale="true"
      >
        <Channel column="1" legend="rightx"/>
        <Channel column="2" legend="righty"/>
        <Channel column="3" legend="rightz"/>
    </TimeSeries>
</View>
  1. Load a CSV file from local disk with 3,600,000 rows, 3 columns

  2. GOOD: Scroll the time window left and right. It should be quick and interactive

  3. Drag the right edge of the time window to make it very narrow.

  4. BUG: now scrolling the time window is very slow and unresponsive

  5. Drag the right edge of the time window to make it very wide.

  6. GOOD: the time window is fast and responsive again

Expected behavior

Scrolling the time window should be fast and responsive even when it is narrowed.

Screenshots

  1. GOOD: Right after initial load. I can scroll quickly by dragging the time slider (at the bottom)

image

  1. BAD: Narrow the time window by dragging the side of the gray bar on the time slider. Then scrolling becomes very slow and unresponsive image

  2. GOOD. dragging the time slider wider (increasing the displayed time axis), scrolling becomes fast again image

Environment (please complete the following information):

Additional context

Maybe related to https://github.com/heartexlabs/label-studio/issues/1705 ?

stamate commented 3 weeks ago

Any news on this?

noelbk commented 3 days ago

Any news on this?

No I switched to another tool shortly after this