Fix disabled logger
This commit is contained in:
parent
cb33ba786a
commit
fa77589f67
@ -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')):
|
||||
logger.disable()
|
||||
if processor_module.pre_process('preview'):
|
||||
logger.enable()
|
||||
target_vision_frame = processor_module.process_frame(
|
||||
{
|
||||
'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,
|
||||
'target_vision_frame': target_vision_frame
|
||||
})
|
||||
logger.enable()
|
||||
return target_vision_frame
|
||||
|
@ -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')):
|
||||
logger.disable()
|
||||
if processor_module.pre_process('stream'):
|
||||
logger.enable()
|
||||
target_vision_frame = processor_module.process_frame(
|
||||
{
|
||||
'source_face': source_face,
|
||||
'source_audio_frame': source_audio_frame,
|
||||
'target_vision_frame': target_vision_frame
|
||||
})
|
||||
logger.enable()
|
||||
return target_vision_frame
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user