Skip to content

Commit c410481

Browse files
committed
debug update
1 parent b3e83e4 commit c410481

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

evaluation_function/evaluation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,15 +343,17 @@ def analyze_images(images, draw_images=True):
343343

344344
total_time = time.time() - start_total
345345

346-
if params.get('debug', False):
347-
# print response structure for debugging purposes
346+
if params.get('debug_response', False):
347+
# print response structure for debugging purposes
348348
try:
349349
append_feedback("DEBUG Response Structure", f"```python\n{repr(response)}\n```")
350350
print("DEBUG Response Structure:", repr(response))
351351
except Exception as e:
352352
append_feedback("Failed to print response structure", f"{e}")
353353
print("Failed to print response structure", e)
354354

355+
if params.get('debug', False):
356+
355357
# also check if YOLO can use GPU (torch.cuda availability)
356358
try:
357359
import torch

0 commit comments

Comments
 (0)