Cosmetics on ignore comments

This commit is contained in:
henryruhs 2024-10-11 20:12:20 +02:00
parent 06740aeea0
commit 39478f7d63
2 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ def detect_with_peppa_wutz(temp_vision_frame : VisionFrame, bounding_box : Bound
def conditional_optimize_contrast(crop_vision_frame : VisionFrame) -> VisionFrame:
crop_vision_frame = cv2.cvtColor(crop_vision_frame, cv2.COLOR_RGB2Lab)
if numpy.mean(crop_vision_frame[:, :, 0]) < 30: # type:ignore[arg-type]
if numpy.mean(crop_vision_frame[:, :, 0]) < 30: #type:ignore[arg-type]
crop_vision_frame[:, :, 0] = cv2.createCLAHE(clipLimit = 2).apply(crop_vision_frame[:, :, 0])
crop_vision_frame = cv2.cvtColor(crop_vision_frame, cv2.COLOR_Lab2RGB)
return crop_vision_frame

View File

@ -13,8 +13,8 @@ from facefusion.typing import DownloadSet, ExecutionProviderKey, InferencePool,
INFERENCE_POOLS : InferencePoolSet =\
{
'cli': {}, # type:ignore[typeddict-item]
'ui': {} # type:ignore[typeddict-item]
'cli': {}, #type:ignore[typeddict-item]
'ui': {} #type:ignore[typeddict-item]
}