Updated the image default TAG to release

PiperOrigin-RevId: 877893209
This commit is contained in:
Vertex MG Team
2026-03-03 05:26:21 -08:00
committed by Copybara-Service
parent cb4916f590
commit 062835174e
2 changed files with 4 additions and 4 deletions
@@ -9,7 +9,7 @@
},
"outputs": [],
"source": [
"# Copyright 2025 Google LLC\n",
"# Copyright 2026 Google LLC\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
@@ -125,7 +125,7 @@
"\n",
"def to_b64_png(img: Image.Image) -> str:\n",
" \"\"\"Converts the `img` to a b64 encoded PNG bytes.\"\"\"\n",
" return base64.b64encode(to_png_bytes(img)).decode()\n",
" return base64.urlsafe_b64encode(to_png_bytes(img)).decode()\n",
"\n",
"\n",
"def write_jsonl_instances(\n",
@@ -95,7 +95,7 @@
")\n",
"\n",
"# Model configuration & utils\n",
"SERVE_DOCKER_URI = \"us-docker.pkg.dev/vertex-ai-restricted/vertex-vision-model-garden-dockers/remote-sensing-serve-tf-gpu:latest\"\n",
"SERVE_DOCKER_URI = \"us-docker.pkg.dev/vertex-ai-restricted/vertex-vision-model-garden-dockers/remote-sensing-serve-tf-gpu:release\"\n",
"MODEL_CONFIGS = {\n",
" \"OWLVIT\": (\n",
" \"earth-ai-imagery-owlvit-eap-10-2025\",\n",
@@ -268,7 +268,7 @@
"def _b64_png(image: Image.Image) -> str:\n",
" arr_bytes = io.BytesIO()\n",
" image.save(arr_bytes, format=\"PNG\")\n",
" return base64.b64encode(arr_bytes.getvalue()).decode(\"utf-8\")\n",
" return base64.urlsafe_b64encode(arr_bytes.getvalue()).decode(\"utf-8\")\n",
"\n",
"\n",
"# Download sample images\n",