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

Number tag not working with any value of step. #6594

Open
ptkenny opened this issue Nov 2, 2024 · 2 comments
Open

Number tag not working with any value of step. #6594

ptkenny opened this issue Nov 2, 2024 · 2 comments

Comments

@ptkenny
Copy link

ptkenny commented Nov 2, 2024

Config:

<View>
  <Image name="image" value="$image"/>
  <RectangleLabels name="face_label" toName="image">
    <Label value="Face"/>
  </RectangleLabels>
  <Number name="face_rating" toName="image" min="0.0" max="10.0" step="0.1" defaultValue="5.0" perRegion="true"/>
  <Choices name="valid_image" toName="image" required="true">
    <Choice value="Invalid Image (for whatever reason)"/>
  </Choices>
</View>

Currently, no numbers are accepted at any step for any labeled region. Screenshot:
image

Context and validation by Caitlin on Slack: https://label-studio.slack.com/archives/CQ8LYQ0J2/p1730563809608669?thread_ts=1730562724.748609&cid=CQ8LYQ0J2

@caitlinwheeless
Copy link
Contributor

caitlinwheeless commented Nov 2, 2024

Note that I was able to recreate this and also got some strange behavior.

For example, 1.6 is accepted.

1.7 results in the following error:

Number 1.7 is not valid. The two nearest valid values are 1.6 and 1.70000000000000000002.

@heidi-humansignal
Copy link
Collaborator

Hi there,

Thanks for opening up an issue! I followed the Slack thread with Caitlin, and it looks like this is similar to an issue that we had worked on somewhat recently. I'll check with our engineering team to see if the fix they implemented is available in the latest open source version of Label Studio.

Just to confirm and ensure that I give as much context to our team as possible, what version of Label Studio are you currently running?

Thanks,

Tyler Conlee
Head of Support
HumanSignal

Comment by Tyler Conlee
Workflow Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants