MCPcopy Create free account
hub / github.com/Tencent/FaceDetection-DSFD / detection_collate

Function detection_collate

data/__init__.py:16–34  ·  view source on GitHub ↗

Custom collate fn for dealing with batches of images that have a different number of associated object annotations (bounding boxes). Arguments: batch: (tuple) A tuple of tensor images and lists of annotations Return: A tuple containing: 1) (tensor) batch of

(batch)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected