MCPcopy Create free account
hub / github.com/MTLab/MorphMLP / as_binary_vector

Function as_binary_vector

slowfast/datasets/utils.py:184–197  ·  view source on GitHub ↗

Construct binary label vector given a list of label indices. Args: labels (list): The input label list. num_classes (int): Number of classes of the label vector. Returns: labels (numpy array): the resulting binary vector.

(labels, num_classes)

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