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
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,6 +268,12 @@ When using resnet101 to score 50k images, the job took ~1h and cost ~0.5$ with r
268
268
For `mobilenet_v2`, it cost 0.05$ with ~1h.
269
269
Note the cost and time depends on your job settings and the regions.
270
270
271
+
### Run the Beam pipeline with the Pub/Sub source
272
+
When `INPUT_DATA` from the `.env` file defines a valid Pub/Sub topic (e.g., `projects/apache-beam-testing/topics/Imagenet_openimage_50k_benchmark`),
273
+
the Beam pipeline is created using the Pub/Sub source with `FixedWindows` and switches to `beam.io.fileio.WriteToFiles` that supports the streaming pipeline.
274
+
We use `shards=0` here since 0 shards is the recommended approach and Dataflow would decide how many files it should write.
275
+
Note that the streaming job will run forever until it is canceled or drained.
0 commit comments