Skip to content

Commit bee95bd

Browse files
authored
fixed docstring
1 parent de20986 commit bee95bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

face_detector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def __init__(self, weights_name='yolov5n_state_dict.pt', config_name='yolov5n.ya
2424
"""
2525
weights_name: name of file with network weights in weights/ folder.
2626
config_name: name of .yaml config with network configuration from models/ folder.
27-
gpu : pytorch device. Use 'cuda:0', 'cuda:1', e.t.c to use gpu or 'cpu' to use cpu.
27+
device : pytorch device. Use 'cuda:0', 'cuda:1', e.t.c to use gpu or 'cpu' to use cpu.
2828
min_face : minimal face size in pixels.
2929
target_size : target size of smaller image axis (choose lower for faster work). e.g. 480, 720, 1080. Choose None for original resolution.
30-
frontal : if True tries to filter nonfrontal faces by keypoints location.
30+
frontal : if True tries to filter nonfrontal faces by keypoints location. CURRENTRLY UNSUPPORTED.
3131
"""
3232
self._class_path = pathlib.Path(__file__).parent.absolute()#os.path.dirname(inspect.getfile(self.__class__))
3333
self.device = device
@@ -188,4 +188,4 @@ def __call__(self,*args):
188188
return self.predict(*args)
189189

190190
if __name__=='__main__':
191-
a = YoloDetector()
191+
a = YoloDetector()

0 commit comments

Comments
 (0)