HumanSignal / label-studio-ml-backend

Configs and boilerplates for Label Studio's Machine Learning backend
Apache License 2.0
473 stars 219 forks source link

API key with SAM #285

Open gebhaard opened 1 year ago

gebhaard commented 1 year ago

I deployed label-studio 1.8.0 in kubernetes, and deployed an ML Backend from the Segment Anything example. I can connect to the ML Backend from the Label Studio, but I get the following error:

FileNotFoundError: Can't access file, no access_token provided for Label Studio Backend

I was trying to look at the example, but no idea how to specify the access token when deploying with docker/kubernetes. Can anybody help me with this?

Thanks.

jackmead515 commented 1 year ago

https://github.com/heartexlabs/label-studio-tools/blob/62e3dc1cbda8100aef51d77056592927496f9af3/label_studio_tools/core/utils/io.py#L36C5-L36C19

https://github.com/heartexlabs/label-studio-ml-backend/blob/8a1ff0348857657a94bd705f9e0fa12ffe6bca11/label_studio_ml/utils.py#L45C3-L45C3

Looking at the line where the error is being through. The access_token isn't even past in! So this looks like a bug to me.