Skip to content

Commit

Permalink
fixed: FaceEnhancer fails on directory target
Browse files Browse the repository at this point in the history
  • Loading branch information
pozitronik committed Jul 25, 2023
1 parent 8fe0573 commit 23429b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sinner/processors/frame/FaceEnhancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def rules(self) -> Rules:
'parameter': {'target', 'target-path'},
'attribute': 'target_path',
'required': True,
'valid': lambda: is_image(self.target_path) or is_video(self.target_path),
'valid': lambda attribute_name, attribute_value: attribute_value is not None and (is_image(attribute_value) or is_video(attribute_value) or os.path.isdir(attribute_value)),
'help': 'Select the target file (image or video) or the directory'
},
{
Expand Down

0 comments on commit 23429b3

Please sign in to comment.