Compare commits

..
Author SHA1 Message Date
Andrew Ferlitsch 5c49bc6fe7 fix: rename UJ10 2023-04-19 23:51:55 +00:00
14 changed files with 21 additions and 31 deletions
@@ -278,8 +278,6 @@
"outputs": [],
"source": [
"import base64\n",
"import os\n",
"from datetime import datetime\n",
"from io import BytesIO\n",
"\n",
"import cv2\n",
@@ -412,13 +410,6 @@
"# for a full list of training arguments.\n",
"model = job.run(\n",
" args=[\n",
" f\"--num_machines={num_nodes}\",\n",
" f\"--num_processes={num_gpus}\",\n",
" \"--machine_rank=0\",\n",
" \"--mixed_precision=no\",\n",
" \"--gpu_ids=all\",\n",
" \"--same_network\",\n",
" \"--dynamo_backend=no\",\n",
" \"controlnet/train_controlnet.py\",\n",
" \"--tracker_project_name=train_controlnet\",\n",
" f\"--pretrained_model_name_or_path={stable_diffusion_model_id}\",\n",
@@ -529,11 +520,11 @@
},
"outputs": [],
"source": [
"# Undeploy model and delete endpoint.\n",
"endpoint.delete(force=True)\n",
"\n",
"# Delete models.\n",
"model.delete()"
"model.delete()\n",
"\n",
"# Undeploy model and delete endpoint.\n",
"endpoint.delete(force=True)"
]
},
{
@@ -1458,7 +1458,7 @@
],
"metadata": {
"colab": {
"name": "sdk-automl-image-classification-batch-online.ipynb",
"name": "UJ1 Vertex SDK AutoML Image Classification.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -1414,7 +1414,7 @@
],
"metadata": {
"colab": {
"name": "sdk-hyperparameter-tuning.ipynb",
"name": "UJ11 Vertex SDK Hyperparameter Tuning.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -1297,7 +1297,7 @@
],
"metadata": {
"colab": {
"name": "sdk-automl-video-classification-batch-prediction.ipynb",
"name": "UJ14 Vertex SDK AutoML Video Classification.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -34,18 +34,18 @@
"<table align=\"left\">\n",
"\n",
" <td>\n",
" <a href=\"https://colab.research.google.com/github/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/migration/sdk-automl-object-tracking-batch-prediction.ipynb\">\n",
" <a href=\"https://colab.research.google.com/github/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/migration/UJ15 Vertex SDK AutoML Object Tracking.ipynb\">\n",
" <img src=\"https://cloud.google.com/ml-engine/images/colab-logo-32px.png\" alt=\"Colab logo\"> Run in Colab\n",
" </a>\n",
" </td>\n",
" <td>\n",
" <a href=\"https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/migration/sdk-automl-object-tracking-batch-prediction.ipynb\">\n",
" <a href=\"https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/migration/UJ15 Vertex SDK AutoML Object Tracking.ipynb\">\n",
" <img src=\"https://cloud.google.com/ml-engine/images/github-logo-32px.png\" alt=\"GitHub logo\">\n",
" View on GitHub\n",
" </a>\n",
" </td>\n",
" <td>\n",
"<a href=\"https://console.cloud.google.com/vertex-ai/workbench/deploy-notebook?download_url=https://raw.githubusercontent.com/GoogleCloudPlatform/vertex-ai-samples/main/notebooks/official/migration/sdk-automl-object-tracking-batch-prediction.ipynb\" target='_blank'>\n",
"<a href=\"https://console.cloud.google.com/vertex-ai/workbench/deploy-notebook?download_url=https://raw.githubusercontent.com/GoogleCloudPlatform/vertex-ai-samples/main/notebooks/official/migration/UJ15 Vertex SDK AutoML Object Tracking.ipynb\" target='_blank'>\n",
" <img src=\"https://lh3.googleusercontent.com/UiNooY4LUgW_oTvpsNhPpQzsstV5W8F7rYgxgGBD85cWJoLmrOzhVs_ksK_vgx40SHs7jCqkTkCk=e14-rj-sc0xffffff-h130-w32\" alt=\"Vertex AI logo\">\n",
" Open in Vertex AI Workbench\n",
" </a>\n",
@@ -633,9 +633,8 @@
" gcs_source=[IMPORT_FILE],\n",
" import_schema_uri=aip.schema.dataset.ioformat.video.object_tracking,\n",
")\n",
"if os.getenv(\"IS_TESTING\"):\n",
"if os.getenv('IS_TESTING'):\n",
" import time\n",
"\n",
" time.sleep(30)\n",
"\n",
"print(dataset.resource_name)"
@@ -1252,7 +1251,7 @@
],
"metadata": {
"colab": {
"name": "sdk-automl-object-tracking-batch-prediction.ipynb",
"name": "UJ15 Vertex SDK AutoML Object Tracking.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -2005,7 +2005,7 @@
],
"metadata": {
"colab": {
"name": "sdk-custom-image-classification-prebuilt-container.ipynb",
"name": "UJ2,12 Vertex SDK Custom Image Classification with pre-built training container.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -1899,7 +1899,7 @@
],
"metadata": {
"colab": {
"name": "sdk-custom-image-classification-custom-container.ipynb",
"name": "UJ3 Vertex SDK Custom Image Classification with custom training container.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -1410,7 +1410,7 @@
],
"metadata": {
"colab": {
"name": "sdk-automl-tabular-binary-classification-online-prediction.ipynb",
"name": "UJ4 Vertex SDK AutoML Tabular Binary Classification.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -1454,7 +1454,7 @@
],
"metadata": {
"colab": {
"name": "sdk-automl-image-object-detection-batch-online.ipynb",
"name": "UJ5 Vertex SDK AutoML Image Object Detection.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -1337,7 +1337,7 @@
],
"metadata": {
"colab": {
"name": "sdk-automl-text-classification-batch-prediction.ipynb",
"name": "UJ6 Vertex SDK AutoML Text Classification.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -1428,7 +1428,7 @@
],
"metadata": {
"colab": {
"name": "sdk-automl-text-entity-extraction-batch-prediction.ipynb",
"name": "UJ7 Vertex SDK AutoML Text Entity Extraction.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -1413,7 +1413,7 @@
],
"metadata": {
"colab": {
"name": "sdk-automl-text-sentiment-analysis-batch-prediction.ipynb",
"name": "UJ8 Vertex SDK AutoML Text Sentiment Analysis.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -1459,7 +1459,7 @@
],
"metadata": {
"colab": {
"name": "sdk-custom-xgboost-prebuilt-container.ipynb",
"name": "UJ9 Vertex SDK Custom XGBoost with pre-built training container.ipynb",
"toc_visible": true
},
"kernelspec": {
@@ -265,7 +265,7 @@
"source": [
"# Install Python package dependencies.\n",
"print(\"Installing libraries\")\n",
"! pip3 install {USER_FLAG} --quiet 'google-cloud-pipeline-components==1.0.20' 'kfp<2'\n",
"! pip3 install {USER_FLAG} --quiet google-cloud-pipeline-components kfp\n",
"! pip3 install {USER_FLAG} --quiet --upgrade google-cloud-aiplatform google-cloud-bigquery"
]
},