Introduce NEXT
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user