pennfudan_fetcher
orchard.data_handler.fetchers.pennfudan_fetcher
¶
PennFudan Pedestrian Detection Dataset Fetcher.
Downloads the PennFudan pedestrian dataset ZIP, extracts instance masks, converts masks to bounding boxes, resizes images, and produces two NPZ files (images + annotations) compatible with DetectionDataset.from_npz().
ensure_pennfudan_npz(metadata)
¶
Ensure PennFudan dataset is downloaded and converted to NPZ format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
metadata
|
DatasetMetadata
|
DatasetMetadata with URL, path, and annotation_path. |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path to the images NPZ file. |