Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@
}
],
"source": [
"!gsutil ls gs://asl-public/data/dreambooth_dog/instance/* | head -n 3"
]
"!gcloud storage ls gs://asl-public/data/dreambooth_dog/instance/* | head -n 3" ]
},
{
"cell_type": "code",
Expand All @@ -328,8 +327,7 @@
}
],
"source": [
"!gsutil ls gs://asl-public/data/dreambooth_dog/class/* | head -n 3"
]
"!gcloud storage ls gs://asl-public/data/dreambooth_dog/class/* | head -n 3" ]
},
{
"cell_type": "markdown",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,14 @@
],
"source": [
"%%bash\n",
"exists=$(gsutil ls -d | grep -w gs://${BUCKET}/)\n",
"\n",
"exists=$(# The gsutil ls -d flag is not supported in gcloud storage.\ngcloud storage ls | grep -w gs://${BUCKET}/)\n", "\n",
"if [ -n \"$exists\" ]; then\n",
" echo -e \"Bucket gs://${BUCKET} already exists.\"\n",
"\n",
"else\n",
" echo \"Creating a new GCS bucket.\"\n",
" gsutil mb -l ${REGION} gs://${BUCKET}\n",
" echo -e \"\\nHere are your current buckets:\"\n",
" gsutil ls\n",
"fi"
" gcloud storage buckets create --location=${REGION} gs://${BUCKET}\n", " echo -e \"\\nHere are your current buckets:\"\n",
" gcloud storage ls\n", "fi"
]
},
{
Expand Down Expand Up @@ -245,12 +242,10 @@
"\n",
"# Copy training files to GCS\n",
"for file in training_filenames:\n",
" !gsutil -m cp $file $TRAINING_DATA_PATH/\n",
"\n",
" !gcloud storage cp $file $TRAINING_DATA_PATH/\n", "\n",
"# Copy eval files to GCS\n",
"for file in validation_filenames:\n",
" !gsutil -m cp $file $EVAL_DATA_PATH/"
]
" !gcloud storage cp $file $EVAL_DATA_PATH/" ]
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -291,8 +286,7 @@
}
],
"source": [
"!gsutil ls -l $TRAINING_DATA_PATH"
]
"!gcloud storage ls --long $TRAINING_DATA_PATH" ]
},
{
"cell_type": "code",
Expand Down Expand Up @@ -326,8 +320,7 @@
}
],
"source": [
"!gsutil ls -l $EVAL_DATA_PATH"
]
"!gcloud storage ls --long $EVAL_DATA_PATH" ]
},
{
"cell_type": "markdown",
Expand Down