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

Polygon Segmentation Loading Time #4026

Open
vchaparro opened this issue Apr 13, 2023 · 6 comments
Open

Polygon Segmentation Loading Time #4026

vchaparro opened this issue Apr 13, 2023 · 6 comments
Assignees
Labels
images Image annotation cases labeling performance Performance & high load-related issues problem bug or something isn't working

Comments

@vchaparro
Copy link

vchaparro commented Apr 13, 2023

Describe the bug
After Labeling Brush and Polygon, the loading time in tasks is huge, could take upto minutes sometimes.

To Reproduce
Steps to reproduce the behavior:

  1. Label an image with Polygon or Brush segmentation, submit
  2. Go to Tasks and try to load the image
  3. You will observe that it takes a huge time to load (2-3 minutes sometimes)

Expected behavior
Should Load quickly

Environment (please complete the following information):Environment (please complete the following information):

  • OS: Ubuntu
  • Label Studio Version 1.7.2

Additional context
According to the issue #476, it should be fixed with version 1.3.0 release, however, I'm getting the same behaviour using version 1.7.2. I am using images of approximately 1500x1500 (around 5 MB) with segmentation polygons. When attempting to open these pre-labeled images, which have a relatively high number of polygons per image (it's about buildings footprint segmentation), it takes too long to open. Additionally, the user experience suffers when transitioning from one image to the next, zooming, and so on. The client-side web browser begins to consume high CPU resources.

@vchaparro vchaparro changed the title Polygon Segmentation Loading Time - follow up of issue https://github.com/heartexlabs/label-studio/issues/476 Polygon Segmentation Loading Time Apr 13, 2023
@makseq
Copy link
Member

makseq commented Apr 14, 2023

Is it possible to open the browser console and record a video with this problem?

@makseq makseq added problem bug or something isn't working images Image annotation cases labeling performance Performance & high load-related issues labels Apr 14, 2023
@vchaparro
Copy link
Author

vchaparro commented Apr 14, 2023

Hi,
Sure

Thanks in advance!

kazam_8bmku52o.mp4

@vchaparro
Copy link
Author

vchaparro commented Apr 19, 2023

Hi @makseq ,

Did you have the chance to watch the video? By the way, I've noticed it works on Chrome, but not on Firefox, just in case you use Firefox.
Thanks!

@mnaranjorion
Copy link

Good morning,

Do you have an update on this issue? I find myself in the same situation, as when I try to upload images with multiple tags, the upload time takes a long time and even crashes.

The only solution I can think of is to split the image to reduce the number of annotations, but that would lose the reference and make annotation very difficult.

Best regards.

@makseq
Copy link
Member

makseq commented May 11, 2023

@vchaparro I've checked your video. Seems you have large amount of regions, so your browser has this performance problems. I am not sure that a simple solution exists here, I will discuss it with our frontend team.

Also it would be helpful if you could check the Network console too, how big is the payload for api/tasks/<id> calls there?

@vchaparro
Copy link
Author

vchaparro commented May 17, 2023

Hi @makseq, find attached a file with the payload of one of these tasks.
payload.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
images Image annotation cases labeling performance Performance & high load-related issues problem bug or something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants