Datasets:
Tasks:
Visual Question Answering
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
< 1K
License:
Fix JSON truncation handling & set max_new_tokens to 1024 in run_eval_mac.py
Browse files
mac_inspector_eval_pack/run_eval_mac.py
CHANGED
|
@@ -581,6 +581,9 @@ def run_single_model_eval(
|
|
| 581 |
replan_feedback=replan_feedback,
|
| 582 |
)
|
| 583 |
planner_time = time.time() - t_replan
|
|
|
|
|
|
|
|
|
|
| 584 |
except Exception as e:
|
| 585 |
print(f" [Replan API Error]: {e}")
|
| 586 |
call_human_help_count += 1
|
|
|
|
| 581 |
replan_feedback=replan_feedback,
|
| 582 |
)
|
| 583 |
planner_time = time.time() - t_replan
|
| 584 |
+
print(f" Planner Replan Plan ({len(current_plan.primitives)} step(s), {planner_time:.2f}s) [Attempt {retry_idx + 1} with {len(active_rules)} rules]:")
|
| 585 |
+
for idx, p in enumerate(current_plan.primitives, 1):
|
| 586 |
+
print(f" {idx}. {p.code}")
|
| 587 |
except Exception as e:
|
| 588 |
print(f" [Replan API Error]: {e}")
|
| 589 |
call_human_help_count += 1
|