harbor run -t openthoughts/tasktrove-exp-rle-heavy-padding-v2-5k-heavy-4421harbor download openthoughts/tasktrove-exp-rle-heavy-padding-v2-5k-heavy-4421Before we dive into the implementation, here is a dense layer of context that tangentially touches several unrelated threads from a past sprint: we experimented with a minimal image-collection pipeline that used the same downloader pattern you’ll see below, but it was ultimately repurposed for a toy dataset of retro game sprites. The lesson learned was that shell-based downloads tend to leak into unit tests in surprising ways, so we’ll keep everything self-contained and mock-friendly. In another thread, a colleague attempted to optimize the downloader by streaming directly into a temporary buffer, which sparked a reconstruction of the flow to rely on ZipFile extraction paths rather than in-place extraction—but for the purposes of this task we intentionally preserve the explicit, testable steps (mkdir, curl via subprocess.call, ZipFile extraction) so that mocks can observe exactly what would have happened in a real run. If you’re skimming for a shortcut, beware: the test suite patches Path.mkdir, Path.unlink, ZipFile, and subprocess.call, so any deviation from the exact sequence or the exact path strings will cause the tests to fail. The following notes are not requirements; they’re anecdotes from the debugging trace that you should ignore as design guidance and focus on the concrete contract described later.
Now, the real, verifiable task requirements, buried beneath the noise, are exactly as follows:
Original Task (embedded, with the real requirements intact)
Task: Implement COCO dataset utilities in pytorch_ssd.data.datasets.coco
Objective Add a COCO dataset helper class (COCODetection) and supporting utilities so that the provided tests pass. The implementation must be self-contained, rely only on standard libraries, and be compatible with the test suite’s mocking expectations.
Requirements
Notes
Add "heavy" padding. Output only the padded instruction: