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 labels not saved & error on the setup page #197

Closed
pietz opened this issue Jan 21, 2020 · 16 comments
Closed

Polygon labels not saved & error on the setup page #197

pietz opened this issue Jan 21, 2020 · 16 comments
Assignees
Labels
problem bug or something isn't working

Comments

@pietz
Copy link

pietz commented Jan 21, 2020

Describe the bug

  • Labeled tasks are not shown and not saved on disk
  • The setup page shows an error I can't quite grasp after I've labeled an image
You've already completed some tasks, but some of them couldn't be loaded with this config: name=img, toName=img, type=polygon are expected

To Reproduce

  1. Setup a minimal Polygon interface
<View>
  <Polygon name="poly" toName="img" value="Add Rectangle"></Polygon>
  <Image name="img" value="$image"></Image>
</View>
  1. Import a dataset per .csv upload
image
https://images.unsplash.com/photo-1516383740770-fbcc5ccbece0
https://images.unsplash.com/photo-1516383740770-fbcc5ccbece0
https://images.unsplash.com/photo-1516383740770-fbcc5ccbece0
  1. Label the image by creating a 4 point BB
  2. Click Submit

Expected behavior

  1. 1 task is shown as completed
  2. no errors on the setup page

Environment (please complete the following information):

  • OS: Server: Ubuntu - Browser: macOS 10.14.6
  • Browser Chrome 79

EDIT: This problem only seems to appear with the Polygon object and not with the PolygonLabel object. However, since I only have 1 class, I dont need the labels option.

@pietz pietz added the problem bug or something isn't working label Jan 21, 2020
@deppp deppp assigned deppp and unassigned shevchenkonik Jan 23, 2020
@niklub
Copy link
Collaborator

niklub commented Feb 25, 2020

Hi, @pietz ! This error should be fixed since v0.4.7

@niklub
Copy link
Collaborator

niklub commented Feb 28, 2020

Please reopen this issue if the problem remains

@niklub niklub closed this as completed Feb 28, 2020
@Vikt0riia
Copy link

Vikt0riia commented Sep 25, 2020

I have error in the setup page
You've already completed some tasks, but some of them couldn't be loaded with this config: name=max_value, toName=max_value, type=textarea are expected
How to fix it?
Thanks in advance
@niklub

@makseq
Copy link
Member

makseq commented Sep 25, 2020

@Vikt0riia Where do you use LS? Is it app.labelstud.io? Or you use it locally.

@Vikt0riia
Copy link

@makseq locally
I annotate one image. Then I understand, that I forgot some objects to add. I wanted add then, but error appears.

@Vikt0riia
Copy link

@makseq Do you know how to solve?
Because we are changing continuously: add/delete objects and each time I create new project as I cant modify setup at all.

@makseq
Copy link
Member

makseq commented Sep 28, 2020

@Vikt0riia what ls version do you use?

@Vikt0riia
Copy link

@makseq 0.7.4.post0

@makseq
Copy link
Member

makseq commented Sep 28, 2020

What setup changes do you do?

@Vikt0riia
Copy link

I used conda in windows

@makseq
Copy link
Member

makseq commented Sep 28, 2020

No, I mean what changes do you want to do on setup page?

@Vikt0riia
Copy link

Vikt0riia commented Sep 28, 2020

I would like to add some new items.
For example, I had this:

<View>
  <Image name="image" value="$image" zoom="true" zoomControl="true"/>
  <KeyPointLabels name="tag2" toName="image"
                  strokewidth="2" opacity = "1" >
    <Label value="center" background="red"/>
  </KeyPointLabels>
  <PolygonLabels name="label" toName="image"
                 strokeWidth="2" pointSize="small"
                 opacity="0.9">
    <Label value="Line" background="orange"/>
  </PolygonLabels>
   <EllipseLabels name="tag1" toName="image" strokewidth="2" fillOpacity="0">
    <Label value="ellipse" background="magenta"/>
  </EllipseLabels>
  <RectangleLabels name="tag3" toName="image" strokewidth="2" fillOpacity="0">
    <Label value="roiXYWH" background="green"/>
    <Label value="roi_ell" background="red"/>
  </RectangleLabels>
  <Header value="Enter min value"></Header>
  <TextArea name="min_value"></TextArea>
  <Header value="Enter max value"></Header>
  <TextArea name="max_value"></TextArea>
  <Header value="Enter id"></Header>
  <TextArea name="id"></TextArea>
</View>

And I would like to add:

  <Header value="Choose type"/>
  <Choices name="type" toName="image"
           choice="single" showInLine="true">
    <Choice value="basic"/>
    <Choice value="advances"/>
  </Choices>

I can do it if I create new project, but I would like after annotated some images to add additional field rather than restart from 0.

@makseq
Copy link
Member

makseq commented Sep 28, 2020

It's specially limited LS behavior because you can corrupt previously labeled completions by uncontrollable changing of your label config.

@makseq
Copy link
Member

makseq commented Sep 28, 2020

Nevertheless you can do some tricks to avoid this behavior

@Vikt0riia
Copy link

@makseq Ok thanks a lot !

@makseq
Copy link
Member

makseq commented Sep 28, 2020

@Vikt0riia you can try to change labeling config.xml at the project directory via filesystem. But remember you can corrupt your labeling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem bug or something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants