feat: add VLM model logging before processing

- Add info log in vlm_summary.rs showing VLM model name
- Add print statements in Python VLM scripts showing model name
- Applies to: trace_vlm_caption.py, scene_vlm_caption.py, interval_vlm_caption.py
This commit is contained in:
Accusys
2026-08-27 20:16:08 +08:00
parent d8e4033741
commit 362a735a91
4 changed files with 7 additions and 0 deletions
+1
View File
@@ -209,6 +209,7 @@ def analyze_intervals(
return {"error": "Cannot get duration"}
print(f"[vlm] Video: {duration:.1f}s, interval: {interval_sec}s")
print(f"[vlm] Using VLM model: {model}")
# Calculate timestamps
timestamps = []
+1
View File
@@ -262,6 +262,7 @@ def analyze_all_scenes(file_uuid: str, output_dir: str, model: str = "llava:7b",
print(f"[vlm] No scene images found: {file_uuid}_scene_*.jpg in {output_dir}", file=sys.stderr)
return {"error": "No scene images"}
print(f"[vlm] Using VLM model: {model}")
results = []
qdrant_api_key = os.environ.get("QDRANT_API_KEY")
+1
View File
@@ -314,6 +314,7 @@ def analyze_all_traces(file_uuid: str, output_dir: str, model: str = "llava:7b")
print(f"No traces found in {file_dir}", file=sys.stderr)
return {"error": "No traces"}
print(f"[vlm] Using VLM model: {model}")
results = []
for trace_dir in trace_dirs:
profile = analyze_trace(str(trace_dir), model)
+4
View File
@@ -68,6 +68,10 @@ pub async fn generate_vlm_summaries(
"[VLM] Starting VLM summary generation for {}: {} traces",
file_uuid, total
);
info!(
"[VLM] Using VLM model: {}",
config::llm::VISION_MODEL.as_str()
);
let mut result = VlmSummaryResult {
total,