Introduce NEXT

This commit is contained in:
henryruhs
2025-05-05 01:47:14 +02:00
parent a6fb48780c
commit 0e01ca131d
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ METADATA =\
{ {
'name': 'FaceFusion', 'name': 'FaceFusion',
'description': 'Industry leading face manipulation platform', 'description': 'Industry leading face manipulation platform',
'version': '3.2.0', 'version': 'NEXT',
'license': 'OpenRAIL-AS', 'license': 'OpenRAIL-AS',
'author': 'Henry Ruhs', 'author': 'Henry Ruhs',
'url': 'https://facefusion.io' 'url': 'https://facefusion.io'

View File

@@ -238,7 +238,7 @@ def restrict_frame(vision_frame : VisionFrame, resolution : Resolution) -> Visio
return vision_frame return vision_frame
def fit_frame(vision_frame: VisionFrame, resolution: Resolution) -> VisionFrame: def fit_frame(vision_frame : VisionFrame, resolution: Resolution) -> VisionFrame:
fit_width, fit_height = resolution fit_width, fit_height = resolution
height, width = vision_frame.shape[:2] height, width = vision_frame.shape[:2]
scale = min(fit_height / height, fit_width / width) scale = min(fit_height / height, fit_width / width)