Spaces:
Paused
Paused
Julian Bilcke commited on
Commit ·
69e24e3
1
Parent(s): b36b370
clean-up
Browse files
engine.py
CHANGED
|
@@ -265,16 +265,3 @@ class Engine:
|
|
| 265 |
x_d_new[0, 11, 1] -= params.get('pupil_y', 0) * 0.001
|
| 266 |
x_d_new[0, 15, 1] -= params.get('pupil_y', 0) * 0.001
|
| 267 |
params['eyes'] = params.get('eyes', 0) - params.get('pupil_y', 0) / 2.
|
| 268 |
-
|
| 269 |
-
def create_engine(models):
|
| 270 |
-
logger.info("Creating Engine instance...")
|
| 271 |
-
|
| 272 |
-
live_portrait = models
|
| 273 |
-
|
| 274 |
-
engine = Engine(
|
| 275 |
-
live_portrait=live_portrait,
|
| 276 |
-
# we might have more in the future
|
| 277 |
-
)
|
| 278 |
-
|
| 279 |
-
logger.info("Engine instance created successfully")
|
| 280 |
-
return engine
|
|
|
|
| 265 |
x_d_new[0, 11, 1] -= params.get('pupil_y', 0) * 0.001
|
| 266 |
x_d_new[0, 15, 1] -= params.get('pupil_y', 0) * 0.001
|
| 267 |
params['eyes'] = params.get('eyes', 0) - params.get('pupil_y', 0) / 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|