-
Notifications
You must be signed in to change notification settings - Fork 31
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
not showing predictions after training #12
Comments
Facing similar issue.
Questions:
|
check you code, whether the variable pred_labels and pred_scores in you code. |
@kbv72 sorry for a late answer 🙁
yes, it looks ok.
You have to put float "score" field into the root of the prediction dict. |
@aczy99 Try to set model version on Project Settings => Machine Learning. Also it's better to include "model_version" field to the prediction root too. |
Facing the same issue, scores are provided but not shown in the tasks list. Selecting the Model version doesn't seem to do anything - displays "Saved!", however is removed upon refreshing the page. It is also confusing where exactly the model version is retrieved from as it is not the same as I provide together with the predictions. |
what do you mean by this? Please show your tasks with predictions. |
I am using the format provided as example in docs: https://labelstud.io/guide/predictions.html#Example-JSON As for the model version, I would also expect the string set from predictions.model_version to be listed under Project Settings => Machine Learning, however there are instead some numeric combinations and 'INITIAL'. A new version (the numeric combination) appears any time I rebuild the backend Docker container. |
Most likely you have a mistake in the prediction/task format. |
So I pulled out the list of predictions made on my tasks, and this is one example stored in the Label Studio database:
As we can see, the score is in fact stored in the database and therefore simply not displayed. This leads me to believe that the issue is not caused by some formatting mistake in the backend output. As the model version string is defined right after the score in my backend output, it is odd that this isn't stored in the database, though. |
@35grain I see you missed "id" in results:
|
Fixed it for me using this code:
But score is not working yet or I dont found out where to put the |
Finally had time to play around with this and unfortunately adding an ID did not solve it. Both score and model version are still missing / invalid.
|
@35grain did you ever find a solution, i'm having the same issue of no prediction score despite the prediction result structure looking correct. |
Unfortunately not. Didn't have time to dig any deeper either :/ |
I've found that if you attach scores to both the result and alongside the result, the score will appear in the interface. I think that there are some recently introduced bugs that we're working on sorting out, and hopefully they will be cleared up soon. |
Describe the bug
There are 2 problems:
To reproduce
Steps to reproduce the behaviour
Expected behaviour
ML training should be completed and new predictions should be shown in UI
The text was updated successfully, but these errors were encountered: