add some pack
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
@@ -9,4 +9,5 @@ scikit-image
|
||||
matplotlib
|
||||
insightface
|
||||
diffusers==0.18.2
|
||||
sentencepiece
|
||||
mmcv_full
|
||||
|
||||
Reference in New Issue
Block a user