mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-08-14 02:37:01 -07:00
refactoring
This commit is contained in:
parent
7463515bfc
commit
78d80f9c5c
5 changed files with 135 additions and 67 deletions
22
apps/trainers/FaceAligner/FaceAlignerTrainer.py
Normal file
22
apps/trainers/FaceAligner/FaceAlignerTrainer.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
from xlib import facemeta as lib_fm
|
||||
from xlib import time as lib_time
|
||||
|
||||
|
||||
class FaceAlignerTrainer:
|
||||
def __init__(self, faceset_path):
|
||||
#fs = self._fs = lib_fm.Faceset(faceset_path)
|
||||
fs = lib_fm.Faceset(faceset_path)
|
||||
#fs.close()
|
||||
|
||||
with lib_time.timeit():
|
||||
for x in fs.iter_UImage():
|
||||
x.get_image()
|
||||
#fs = lib_fm.Faceset(faceset_path)
|
||||
#fs.add_UFaceMark( [ lib_fm.UFaceMark() for _ in range(1000)] )
|
||||
|
||||
import code
|
||||
code.interact(local=dict(globals(), **locals()))
|
||||
|
||||
|
||||
def run(self):
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue