Fix disabled logger

This commit is contained in:
henryruhs 2024-09-11 23:53:54 +02:00
parent cb33ba786a
commit fa77589f67
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,6 @@ def process_preview_frame(reference_faces : FaceSet, source_face : Face, source_
for processor_module in get_processors_modules(state_manager.get_item('processors')): for processor_module in get_processors_modules(state_manager.get_item('processors')):
logger.disable() logger.disable()
if processor_module.pre_process('preview'): if processor_module.pre_process('preview'):
logger.enable()
target_vision_frame = processor_module.process_frame( target_vision_frame = processor_module.process_frame(
{ {
'reference_faces': reference_faces, 'reference_faces': reference_faces,
@ -237,4 +236,5 @@ def process_preview_frame(reference_faces : FaceSet, source_face : Face, source_
'source_vision_frame': source_vision_frame, 'source_vision_frame': source_vision_frame,
'target_vision_frame': target_vision_frame 'target_vision_frame': target_vision_frame
}) })
logger.enable()
return target_vision_frame return target_vision_frame

View File

@ -143,13 +143,13 @@ def process_stream_frame(source_face : Face, target_vision_frame : VisionFrame)
for processor_module in get_processors_modules(state_manager.get_item('processors')): for processor_module in get_processors_modules(state_manager.get_item('processors')):
logger.disable() logger.disable()
if processor_module.pre_process('stream'): if processor_module.pre_process('stream'):
logger.enable()
target_vision_frame = processor_module.process_frame( target_vision_frame = processor_module.process_frame(
{ {
'source_face': source_face, 'source_face': source_face,
'source_audio_frame': source_audio_frame, 'source_audio_frame': source_audio_frame,
'target_vision_frame': target_vision_frame 'target_vision_frame': target_vision_frame
}) })
logger.enable()
return target_vision_frame return target_vision_frame