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 · 1 comment
Open

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

ptkenny opened this issue Nov 2, 2024 · 1 comment

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.

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

No branches or pull requests

2 participants