add some pack

This commit is contained in:
toto
2023-12-16 21:36:21 +08:00
parent 97c93eff3d
commit 6a2d356ed7
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -295,7 +295,7 @@ class ImageScaleShortPM:
return {"required": {
"image": ("IMAGE",),
"size": ("INT", {"default": 512, "min": 0, "max": 2048, "step": 1}),
"crop_face": ("BOOLEAN", {"default": False, "label_on": "enabled", "label_off": "disabled"}),
"crop_face": ("BOOLEAN", {"default": False}),
}}
RETURN_TYPES = ("IMAGE",)
@@ -303,6 +303,7 @@ class ImageScaleShortPM:
CATEGORY = "protrait/other"
def image_scale_short(self, image, size, crop_face):
input_image = tensor_to_img(image)
short_side = min(input_image.width, input_image.height)
+1
View File
@@ -9,4 +9,5 @@ scikit-image
matplotlib
insightface
diffusers==0.18.2
sentencepiece
mmcv_full