Datasets:
|
Download crop_params/README.md from CrocoSign/pjm-data: direct link, hf CLI and curl.
- Browser
- Download file 839 Bytes
-
https://huggingface.co/datasets/CrocoSign/pjm-data/resolve/main/crop_params/README.md
- Command line
-
hf download hf://datasets/CrocoSign/pjm-data/crop_params/README.md
-
curl -L -o README.md https://huggingface.co/datasets/CrocoSign/pjm-data/resolve/main/crop_params/README.md
839 Bytes
Crop parameters
One square crop box per clip that frames the signer, found by running a YOLO person detector on every frame (code: pjm-data, step 05). The videos are stored uncropped; the crop is applied when loading data.
crop_params.lmdb/: LMDB with the clip key (the__key__of the segment record) as key and a msgpack map as value:x_start,y_start,x_end,y_endandpadding(top,bottom,left,right). It covers all 39,813 segments, before the dataset filters.failed.csv: the 4 clips that could not be opened (video_name,exception).
import lmdb, msgpack
env = lmdb.open("crop_params.lmdb", readonly=True, lock=False)
with env.begin() as txn:
box = msgpack.unpackb(txn.get(b"001_000_M"))