question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature to access images from GCS bucket

See original GitHub issue

Is your feature request related to a problem? Please describe. I’ve a huge folder of images in a private GCS bucket, I import a few (around hundred) by defining tasks using the GCS url for image. But there is no way of giving authorization to that currently.

Describe the solution you’d like A way to provide authentication by using the GCS json key.

This is the json I’m using to create tasks:

{
  "data": {
    "image": "gs://image-bucket/image.png"
  },
  "is_labeled": false,
  "project": x
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
suvojit-0x55aacommented, Jun 16, 2021

In prerequisite it is mentioned that Service Account Token Creator permission is needed only I think label-studio is trying to access with other permission also:

[2021-06-16 07:38:57,741] [core.utils.common::custom_exception_handler::79] [ERROR] 759a7a36-dbd2-41f4-afdb-33a16b5e5216 403 GET https://storage.googleapis.com/storage/v1/b/image-bucket?projection=noAcl&prettyPrint=false: just-another-account@project.iam.gserviceaccount.com does not have storage.buckets.get access to the Google Cloud Storage bucket.

I see in this following line label-studio uses .get_bucket() https://github.com/heartexlabs/label-studio/blob/8cfdc0e296a3725427f2ffa039509ea4b83efc82/label_studio/io_storages/gcs/models.py#L119

The issue with this is mentioned here: https://github.com/googleapis/google-cloud-python/issues/9065#issuecomment-524238553

0reactions
makseqcommented, Oct 14, 2022

this feature is supported more than 1.5 year.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Processing images from Cloud Storage tutorial - Google Cloud
This tutorial demonstrates using Cloud Run, Cloud Vision API, and ImageMagick to detect and blur offensive images uploaded to a Cloud Storage bucket....
Read more >
Accessing images from google cloud bucket (smiliar to folder)
To load all images, you need to list all the available files from google cloud storage bucket using list_blobs(). Then you can download...
Read more >
How do I get my pictures from Google Cloud? - website builder
Images in Google Cloud are large files that can be used to represent data in ways that make it easier to use, understand,...
Read more >
Image Processing using Google Cloud Functions - Medium
Step 1: Create two GCS buckets using gcloud commands. One for source image sequence and another for processed image sequence. export ...
Read more >
Extend Cloud Storage with Cloud Functions - Firebase - Google
Use gcs.bucket.file(filePath).download to download a file to a temporary directory on your Cloud Functions instance. In this location, you can process ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found