mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-21 22:47:00 +08:00
changed code style
This commit is contained in:
parent
14718354d7
commit
b082105246
@ -243,7 +243,10 @@ class Sharpen:
|
|||||||
|
|
||||||
result = torch.clamp(sharpened, 0, 1)
|
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:
|
class ImageScaleToTotalPixels:
|
||||||
upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"]
|
upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user