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:
@@ -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 = []
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user