HumanSignal / HumanSignal/label-studio-ml-backend
Segment-Anything Unauthorized error when accessing a public resource
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 490
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 3
Description
I'm encountering a 401 error while utilizing SAM with a remote GCS URL, despite being certain the URL is public.
I'm attempting to upload a large JSON file of images via a GCS bucket, but the process fails when invoking the SAM endpoint.
It appears the issue stems from this specific line of code: https://github.com/HumanSignal/label-studio-ml-backend/blob/193e24e95539371f53d93d6bee3d8cf684326857/label_studio_ml/utils.py#L66
According to the official documentation, the authentication token should be a Label Studio authentication token. However, using it results in an erroneous Authorization token being added to the request.
This is the get_local_path function from the public tools repo: https://github.com/HumanSignal/label-studio-tools/blob/eef952c953fc3c4ed27a276e112ce65f313b7b0a/label_studio_tools/core/utils/io.py#L103
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.