You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by vt...@apache.org on 2026/01/21 18:21:19 UTC

(beam) branch oss-image-cpu updated: Add project argument

This is an automated email from the ASF dual-hosted git repository.

vterentev pushed a commit to branch oss-image-cpu
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/oss-image-cpu by this push:
     new 54bca90520e Add project argument
54bca90520e is described below

commit 54bca90520e759864754e46f8ddcd9d2195545d8
Author: Vitaly Terentyev <vi...@akvelon.com>
AuthorDate: Wed Jan 21 22:21:05 2026 +0400

    Add project argument
---
 sdks/python/apache_beam/examples/inference/pytorch_image_captioning.py  | 2 ++
 .../apache_beam/examples/inference/pytorch_image_object_detection.py    | 2 ++
 sdks/python/apache_beam/examples/inference/pytorch_imagenet_rightfit.py | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/sdks/python/apache_beam/examples/inference/pytorch_image_captioning.py b/sdks/python/apache_beam/examples/inference/pytorch_image_captioning.py
index 914ac43fe99..498c1c214c0 100644
--- a/sdks/python/apache_beam/examples/inference/pytorch_image_captioning.py
+++ b/sdks/python/apache_beam/examples/inference/pytorch_image_captioning.py
@@ -341,6 +341,8 @@ def parse_known_args(argv):
 
   # I/O & runtime
   parser.add_argument('--mode', default='batch', choices=['batch'])
+  parser.add_argument(
+      '--project', default='apache-beam-testing', help='GCP project ID')
   parser.add_argument(
       '--input', required=True, help='GCS path to file with image URIs')
   parser.add_argument(
diff --git a/sdks/python/apache_beam/examples/inference/pytorch_image_object_detection.py b/sdks/python/apache_beam/examples/inference/pytorch_image_object_detection.py
index 8b0f216e5fe..0bb5f53e5b0 100644
--- a/sdks/python/apache_beam/examples/inference/pytorch_image_object_detection.py
+++ b/sdks/python/apache_beam/examples/inference/pytorch_image_object_detection.py
@@ -243,6 +243,8 @@ def parse_known_args(argv):
 
   # I/O & runtime
   parser.add_argument('--mode', default='batch', choices=['batch'])
+  parser.add_argument(
+      '--project', default='apache-beam-testing', help='GCP project ID')
   parser.add_argument(
       '--output_table',
       required=True,
diff --git a/sdks/python/apache_beam/examples/inference/pytorch_imagenet_rightfit.py b/sdks/python/apache_beam/examples/inference/pytorch_imagenet_rightfit.py
index fa380ed8ac7..76daded4f48 100644
--- a/sdks/python/apache_beam/examples/inference/pytorch_imagenet_rightfit.py
+++ b/sdks/python/apache_beam/examples/inference/pytorch_imagenet_rightfit.py
@@ -202,6 +202,8 @@ class PostProcessDoFn(beam.DoFn):
 def parse_known_args(argv):
   parser = argparse.ArgumentParser()
   # I/O & runtime
+  parser.add_argument(
+      '--project', default='apache-beam-testing', help='GCP project ID')
   parser.add_argument(
       '--mode', default='streaming', choices=['streaming', 'batch'])
   parser.add_argument(