HumanSignal/label-studio-ml-backend

Auto annotatiion feeture not working!

4ff4n opened this issue · 3 comments

Hello Folks!
I am having trouble with auto annotation feature of label-studio-ml-backend. It is unable to make the prediction and showing the following error:

traceback_error

Although my images upload successfully,
image
The back-end server is also green, showing connected.

image

Please Help if I am missing something
Thanks in advance!

Hello, @4ff4n !

The error in logs you see is coming from inability to access images uploaded in Label Studio from your GroundingDINO ML backend.
To ensure this is working without errors, please try the following:

  1. Make sure you're using the latest ML backend and install it from docker. You may try to rebuild it to avoid caching old pip packages:
docker-compose build --no-cache
docker-compose up
  1. Per quickstart section, ensure you're set the correct parameters to access Label Studio instance and retrieve files from it:
    # Add these variables if you want to access the images stored in Label Studio
    - LABEL_STUDIO_HOST=
    - LABEL_STUDIO_ACCESS_TOKEN=
    

Let me know if that doesn't help.

Thanks much @niklub, I was using the loop back localhost:8081 to access the resources for label studio server from inside
label-studio-ml-backend docker container. But after using the actual IP address of my Host machine it worked!

Thanks! We also added more description about ML backend data access in Label Studio documentation HumanSignal/label-studio#5815.