1. A method, comprising: receiving a plurality of image frames; and performing a face detection task on the plurality of image frames, the face detection task comprising a plurality of sub-tasks, the plurality of sub-tasks allocated among a plurality of layers; wherein a size range corresponds to each of the plurality of layers.