mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
Add DLIBExtractor.extract
Fix AttributeError: 'DLIBExtractor' object has no attribute 'extract'
This commit is contained in:
parent
7be2fd67f5
commit
c48e472a00
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ class DLIBExtractor(object):
|
|||
def __exit__(self, exc_type=None, exc_value=None, traceback=None):
|
||||
del self.dlib_cnn_face_detector
|
||||
return False #pass exception between __enter__ and __exit__ to outter level
|
||||
|
||||
def extract(self, input_image, is_bgr=True):
|
||||
return self.extract_from_bgr(input_image)
|
||||
|
||||
def extract_from_bgr (self, input_image):
|
||||
input_image = input_image[:,:,::-1].copy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue