changed code style

This commit is contained in:
Alexander Piskun 2024-05-18 10:56:30 +03:00
parent 14718354d7
commit b082105246
No known key found for this signature in database
GPG Key ID: 1F0BF0EC3CF22721

View File

@ -243,7 +243,10 @@ class Sharpen:
result = torch.clamp(sharpened, 0, 1)
return (result,) if comfy.model_management.mps_mode() else (result.to(comfy.model_management.intermediate_device()),)
if comfy.model_management.mps_mode():
return (result,)
return (result.to(comfy.model_management.intermediate_device()),)
class ImageScaleToTotalPixels:
upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"]