You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Facetorch is a Python library that can detect faces and analyze facial features using deep neural networks. The goal is to gather open sourced face analysis models from the community, optimize them for performance using TorchScript and combine them to create a face analysis tool that one can:
<p><ahref="https://github.com/tomas-gajarsky/facetorch" title="facetorch: detect faces and analyze facial features using neural networks"><cite>facetorch GitHub repository</cite></a></p>
256
254
<p>Generated by <ahref="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
reverse_colors (bool): Whether to reverse the colors of the image tensor from RGB to BGR or vice versa. If False, the colors remain unchanged. Default: False.
164
-
expand_pixels (int): Number of pixels to expand the face location and tensor by. Default: 0.
164
+
expand_box_ratio (float): Expand the box by this ratio. Default: 0.0.
<divclass="desc"><p>Initialize the detector postprocessor. Modified from <ahref="https://github.com/biubug6/Pytorch_Retinaface.">https://github.com/biubug6/Pytorch_Retinaface.</a></p>
<dd>Expand the box by this ratio. Default: 0.0.</dd>
620
620
</dl></div>
621
621
<detailsclass="source">
622
622
<summary>
@@ -637,7 +637,7 @@ <h2 id="args">Args</h2>
637
637
prior_box: PriorBox,
638
638
variance: List[float],
639
639
reverse_colors: bool = False,
640
-
expand_pixels: int = 0,
640
+
expand_box_ratio: float = 0.0,
641
641
):
642
642
"""Initialize the detector postprocessor. Modified from https://github.com/biubug6/Pytorch_Retinaface.
643
643
@@ -653,7 +653,7 @@ <h2 id="args">Args</h2>
653
653
prior_box (PriorBox): PriorBox object.
654
654
variance (List[float]): Prior box variance.
655
655
reverse_colors (bool): Whether to reverse the colors of the image tensor from RGB to BGR or vice versa. If False, the colors remain unchanged. Default: False.
656
-
expand_pixels (int): Number of pixels to expand the face location and tensor by. Default: 0.
656
+
expand_box_ratio (float): Expand the box by this ratio. Default: 0.0.
<p><ahref="https://github.com/tomas-gajarsky/facetorch" title="facetorch: detect faces and analyze facial features using neural networks"><cite>facetorch GitHub repository</cite></a></p>
456
458
<p>Generated by <ahref="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
0 commit comments