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.19k stars 2.28k forks source link

Frontend issue prevents editing meta (Object detection with bounding boxes) #5314

Open niazangels opened 7 months ago

niazangels commented 7 months ago

Describe the bug For each bounding box, label studio provides a text area to add "Selected region meta". Currently this works exactly one time. Further edits are not getting saved because the frontend is not sending the updated meta to the backend. Frontend is still sending the initially provided value to the backend even when the user has edited the value and "Updated".

To Reproduce Steps to reproduce the behavior:

  1. Create a project of the type "Object Detection with Bounding Boxes"
  2. Upload an image
  3. Start a labelling task and draw a bounding box.
  4. Select the bounding box and in the right sidebar click "Info > [ + ]"
  5. Put in an inital value in the text area ("apple")
  6. Submit the task.
  7. Click on the same bounding box change the meta value to a new one ("ball")
  8. Click update
  9. Click on the same bounding box again and check the meta value of the box.
  10. The value is still the initial value ("apple" )
  11. Check the network request made when the bbox is being updated. It shows that the value is still "apple" even when the meta was changed.

Expected behavior Edited meta should be properly saved on every "Update".

Video demo

https://github.com/HumanSignal/label-studio/assets/2761491/29cae8f5-d354-4ee7-8403-e6992ee3bec4

Environment (please complete the following information):

Additional context:

lalkrishna-nc commented 7 months ago

Hi @hogepodge can you review this issue

hogepodge commented 7 months ago

I'm sorry, I no longer work for HumanSignal.

sajarin commented 2 months ago

/jira create

Workflow run Jira issue TRIAG-624 is created

bernhofer commented 2 months ago

The problem still occurs in version 1.12.1. It was also reported in #5138.

Ariya0o commented 1 month ago

20240807-174640 I commented out the code as shown in the image to solve this issue, but I'm not sure if this will cause other bugs, because my front-end skills are weak and I can't fully understand the source code.