tryolabs / luminoth

Deep Learning toolkit for Computer Vision.
https://tryolabs.com
BSD 3-Clause "New" or "Revised" License
2.4k stars 399 forks source link

gcloud forbidden error #184

Closed kittles closed 6 years ago

kittles commented 6 years ago

perhaps this is more my ignorance of gcloud, but im not able to train a model in the cloud because of this error:

Error: Forbidden access to resources. Raw response: { "error": { "errors": [ { "domain": "global", "reason": "forbidden", "message": "Required 'compute.regions.get' permission for 'projects/sample-object-detection/regions/us-central1'" } ], "code": 403, "message": "Required 'compute.regions.get' permission for 'projects/sample-object-detection/regions/us-central1'" } }

i dont know what this means, my guess is some kind of IAM permission needs to be tweaked?

changux commented 6 years ago

Hi,

You must create a project on GCP, enable billing and API’s on compute engine and google ML.

https://cloud.google.com/resource-manager/docs/creating-managing-projects

https://cloud.google.com/billing/docs/how-to

https://support.google.com/cloud/answer/6158841?hl=en

Regards,

On Mon, Jun 4, 2018 at 11:52 AM Patrick Brooks notifications@github.com wrote:

perhaps this is more my ignorance of gcloud, but im not able to train a model in the cloud because of this error:

Error: Forbidden access to resources. Raw response: { "error": { "errors": [ { "domain": "global", "reason": "forbidden", "message": "Required 'compute.regions.get' permission for 'projects/sample-object-detection/regions/us-central1'" } ], "code": 403, "message": "Required 'compute.regions.get' permission for 'projects/sample-object-detection/regions/us-central1'" } }

i dont know what this means, my guess is some kind of IAM permission needs to be tweaked?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tryolabs/luminoth/issues/184, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPe-1BeogpEnF1OeqZcvJay_rPju7GZks5t5WXBgaJpZM4UZcAs .

kittles commented 6 years ago

hey thanks for getting back to me so quickly! i have indeed done those steps. are there some quirks to creating the service account key?

changux commented 6 years ago

Useful links:

https://github.com/tryolabs/luminoth/blob/master/docs/usage/training.rst

https://console.cloud.google.com/iam-admin/serviceaccounts/project

https://youtu.be/tSnzoW4RlaQ

Regards,

On Mon, Jun 4, 2018 at 12:11 PM Patrick Brooks notifications@github.com wrote:

hey thanks for getting back to me so quickly! i have indeed done those steps. are there some quirks to creating the service account key?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/tryolabs/luminoth/issues/184#issuecomment-394429575, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPe-4KiNAOaBRLOyVwI-rVZ8D7NVGy7ks5t5Wo3gaJpZM4UZcAs .