You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No ordinary student will ever have a right to write to the public flowers dataset's location.
The first exercise deals with MNIST db, then the second exercise section tries to showcase how to speed up the flower database reads by creating TFRecords in a cloud storage bucket.
This fails with a privilege problem complaining that the compute service account belonging to the project doesn't have object creation rights. First I went into IAM, added the role, and rerun. It failed again, at which point I realized that GCS_OUTPUT points to a public location I don't control, and probably never have any write privileges to.
So IMHO the notebook should have extra steps to:
Create a storage bucket with the student, the usual convention is to name it as the Project ID.
Use that project ID in the GCS_OUTPUT variable.
Then the code can run.
# TODO: substitute project ID
PROJECT_ID = ...
GCS_PATTERN = 'gs://flowers-public/*/*.jpg'
GCS_OUTPUT = 'gs://{}/tfrecords-jpeg-192x192-2/flowers'.format(PROJECT_ID) # prefix for output file names
Note that there are 10 various ways I saw in notebooks how to fill the PROJECT_ID automatically. I'm ambivalent which one is the best, I leave it to the issue fixer. I can craft a PR if needed.
The text was updated successfully, but these errors were encountered:
No ordinary student will ever have a right to write to the public flowers dataset's location.
The first exercise deals with MNIST db, then the second exercise section tries to showcase how to speed up the flower database reads by creating TFRecords in a cloud storage bucket.
This fails with a privilege problem complaining that the compute service account belonging to the project doesn't have object creation rights. First I went into IAM, added the role, and rerun. It failed again, at which point I realized that GCS_OUTPUT points to a public location I don't control, and probably never have any write privileges to.
So IMHO the notebook should have extra steps to:
GCS_OUTPUT
variable.Note that there are 10 various ways I saw in notebooks how to fill the
PROJECT_ID
automatically. I'm ambivalent which one is the best, I leave it to the issue fixer. I can craft a PR if needed.The text was updated successfully, but these errors were encountered: