harbor run -t openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-3773harbor download openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-3773This task requires you to fill in all NotImplementedError stubs in the scaffolded module under /app/. The goal is to provide a small, self-contained, deterministic offline benchmark workflow for object-detection-like predictions, using a mock detector and simple image I/O. Do not copy any external heavy dependencies or real model code; implement lightweight, deterministic behavior guided by the docstrings and type hints.
What to implement (function and class responsibilities)
DatasetSpec
MockDetector
write_ppm
generate_demo_image
load_image
print_image_size
mock_predict_for_image
visualize_predictions
run_benchmark
main
Files to modify
Testing
Notes and design constraints
Usage
Remember: Provide clear, deterministic behavior that aligns with the docstrings and type hints, but do not include or reveal any specific implementation code in this instruction.
Important: place your implementation at /app/app.py so the tests can import app.