Skip to content

Commit baf08c5

Browse files
authored
Fixing a reloading issue and a typo (#221)
* Fixing reloading issue After reloading the list of avatars as images was a tuple of the list of images and the list of avatar names. * Fixing typo in is_new_frame_better Probably the global predictor was used and therefore no error was produced when alievk tested the function.
1 parent 01db88c commit baf08c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

afy/cam_fomm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
exit()
2525

2626

27-
def is_new_frame_better(source, driving, precitor):
27+
def is_new_frame_better(source, driving, predictor):
2828
global avatar_kp
2929
global display_string
3030

@@ -376,7 +376,7 @@ def select_camera(config):
376376
elif key == ord('l'):
377377
try:
378378
log('Reloading avatars...')
379-
avatars = load_images()
379+
avatars, avatar_names = load_images()
380380
passthrough = False
381381
log("Images reloaded")
382382
except:

0 commit comments

Comments
 (0)