Skip to content

Commit

Permalink
Temp fix for enhancer
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Jul 15, 2023
1 parent 9869b96 commit ead12e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roop/processors/frame/face_enhancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def enhance_face(temp_frame: Frame) -> Frame:
return temp_frame


def process_frame(source_face: Face, temp_frame: Frame) -> Frame:
def process_frame(source_face: Face, reference_face: Face, temp_frame: Frame) -> Frame:
target_face = get_one_face(temp_frame)
if target_face:
temp_frame = enhance_face(temp_frame)
Expand All @@ -77,7 +77,7 @@ def process_frame(source_face: Face, temp_frame: Frame) -> Frame:
def process_frames(source_path: str, temp_frame_paths: List[str], update: Callable[[], None]) -> None:
for temp_frame_path in temp_frame_paths:
temp_frame = cv2.imread(temp_frame_path)
result = process_frame(None, temp_frame)
result = process_frame(None, None, temp_frame)
cv2.imwrite(temp_frame_path, result)
if update:
update()
Expand Down

0 comments on commit ead12e3

Please sign in to comment.