I have a project where we deploy the "Vertex AI Vision SDK" into a container in Docker…
- User
I have a project where we deploy the "Vertex AI Vision SDK" into a container in Docker Desktop on the client computer on the edge and the sdk pushes the camera feed from the rtsp to Google Cloud's Vertex AI Vision and it goes through pre-trained human/vehicle model to find out count and that information is written into BigQuery in json format. This information will be queried and provided back to the customer in json response.
I would like to identify the roundtrip time from the start of the stream to the json response. However the timestamp on the camera is off. It's hard to evaluate the roundtrip time.
Provide me methodologies/ideas on how to accurately calculate the roundtrip time.
Assistant
To accurately calculate the roundtrip time for your Vertex AI Vision SDK container deployment, you can use the following methodologies:
-
Add a timestamp to the camera feed: You can add a timestamp to the camera feed that is sent to Vertex AI Vision. This will allow you to calculate the roundtrip time by comparing the timestamp on the camera feed with the timestamp of the JSON response from BigQuery.
-
Use a reference clock: You can use a reference clock to synchronize the timestamps of the camera feed and the JSON response. This will ensure that the timestamps are accurate and can be used to calculate the roundtrip time.
-
Use a performance counter: You can use a performance counter to measure the time taken for each step of the process, from the camera feed to the JSON response. This will give you a more detailed understanding of the roundtrip time and help you identify any bottlenecks in the system.
-
Use a logging system: You can use a logging system to record the time taken for each step of the process. This will allow you to review the logs and calculate the roundtrip time.
By using one or more of these methodologies, you should be able to accurately calculate the roundtrip time for your Vertex AI Vision SDK container deployment.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.