mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-16 10:03:42 -07:00
22 lines
No EOL
621 B
Python
22 lines
No EOL
621 B
Python
from xlib import face as lib_face
|
|
from xlib import time as lib_time
|
|
|
|
|
|
class FaceAlignerTrainer:
|
|
def __init__(self, faceset_path):
|
|
#fs = self._fs = lib_face.Faceset(faceset_path)
|
|
fs = lib_face.Faceset(faceset_path)
|
|
#fs.close()
|
|
|
|
with lib_time.timeit():
|
|
for x in fs.iter_UImage():
|
|
x.get_image()
|
|
#fs = lib_face.Faceset(faceset_path)
|
|
#fs.add_UFaceMark( [ lib_face.UFaceMark() for _ in range(1000)] )
|
|
|
|
import code
|
|
code.interact(local=dict(globals(), **locals()))
|
|
|
|
|
|
def run(self):
|
|
... |