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

Error when annotating last data-point in time-series #1209

Open TueLindhart opened 3 years ago

TueLindhart commented 3 years ago

Describe the bug A clear and concise description of what the bug is. When annotating time-series, it is not possible to annotate the last data-point in the time series. The "end" key in "result" becomes: "0NaN-NaN-NaN NaN:NaN:NaN"

To Reproduce Steps to reproduce the behavior:

  1. Install Label Studio 1.1 via docker.
  2. Click on time-series task.
  3. Mark time-series including last data-point.
  4. Note that marking not is visible.

Expected behavior I expected that the marking is visible and end key is a timestamp.

Screenshots Screenshot 2021-07-23 at 14 25 07 Screenshot 2021-07-23 at 14 25 23 Screenshot 2021-07-23 at 14 25 53

Environment (please complete the following information):

Additional context Add any other context about the problem here.

TueLindhart commented 2 years ago

Any news for this bug? It has been a problem for a while now.

makseq commented 2 years ago

@TueLindhart Sorry, but we haven't fixed it. I'll ping our frontend team regarding this issue.

hogepodge commented 1 year ago

@TueLindhart it looks like we may have fixed this upstream. Can you check with the latest version?

Raven888888 commented 1 year ago

@hogepodge @TueLindhart I am using Label Studio 1.7.0 and this error still persists

{
    "id": 31080,
    "predictions": [],
    "annotations": [
        {
            "id": 19902,
            "created_username": "xxx",
            "created_ago": "0 minutes",
            "completed_by": {
                "id": 25,
                "first_name": "",
                "last_name": "",
                "avatar": null,
                "email": "xxx",
                "initials": "la"
            },
            "result": [],
            "was_cancelled": false,
            "ground_truth": false,
            "created_at": "2023-04-03t03:09:01.591601z",
            "updated_at": "2023-04-03t03:09:08.093129z",
            "lead_time": 9.469000000000001,
            "task": 31080,
            "parent_prediction": null,
            "parent_annotation": null
        }
    ],
    "drafts": [
        {
            "id": 8646,
            "user": "xxx",
            "created_ago": "0 minutes",
            "result": [
                {
                    "value": {
                        "start": "2023-03-29 22:00:00.000",
                        "end": "0NaN-NaN-NaN NaN:NaN:NaN.NaN",
                        "instant": false,
                        "timeserieslabels": [
                            "Spike"
                        ]
                    },
                    "id": "h_zpItl2w-",
                    "from_name": "label",
                    "to_name": "ts",
                    "type": "timeserieslabels",
                    "origin": "manual"
                }
            ],
            "lead_time": 37.701,
            "was_postponed": false,
            "created_at": "2023-04-03T03:09:21.071652Z",
            "updated_at": "2023-04-03T03:09:37.089139Z",
            "task": 31080,
            "annotation": 19902
        }
    ],
    "annotators": [
        25
    ],
    "inner_id": 25,
    "cancelled_annotations": 0,
    "total_annotations": 1,
    "total_predictions": 0,
    "completed_at": "2023-04-03T03:09:01.591601Z",
    "annotations_results": "[]",
    "predictions_results": "",
    "predictions_score": null,
    "file_upload": "d30d6e4f-Spike_Detection_2023-03-29_11083.csv",
    "storage_filename": null,
    "annotations_ids": "19902",
    "predictions_model_versions": "",
    "avg_lead_time": 9.469000000000001,
    "updated_by": [
        {
            "user_id": 25
        }
    ],
    "data": {
        "image": "/data/upload/664/d30d6e4f-Spike_Detection_2023-03-29_11083.csv"
    },
    "meta": {},
    "created_at": "2023-04-01T07:08:41.258106Z",
    "updated_at": "2023-04-03T03:09:08.369244Z",
    "is_labeled": true,
    "overlap": 1,
    "comment_count": 0,
    "unresolved_comment_count": 0,
    "last_comment_updated_at": null,
    "project": 664,
    "comment_authors": []
}

UI shows image