Runs the upstream Loss Prevention VLM workload, which combines YOLO object detection with a vision language model (VLM) for scene understanding, and measures the VLM token throughput.
Clone intel-retail/loss-prevention into esq_data/thirdparty/loss-prevention and check out commit_id.
Create the application's .env (generated MinIO and RabbitMQ passwords, HUGGINGFACE_TOKEN) if it does not exist, and run make download-models.
Run make run-lp CAMERA_STREAM=<camera_stream> RENDER_MODE=0 REGISTRY=false, then poll the vlm-pipeline-runner container every 60 seconds (15 times at most) until it exits.
Stop the workload with make down-lp, run make consolidate-metrics, and average the values in results/vlm-results/vlm_performance_metrics_*.txt. Latencies come from metrics.csv.