This commit is contained in:
matt3o
2023-09-24 09:22:57 +02:00
parent ddb3e3c74f
commit 9e6e7a72f1
+2 -1
View File
@@ -327,6 +327,7 @@ def max_(tensor_list):
mx = x.max(axis=0)[0]
return mx
# From https://github.com/Jamy-L/Pytorch-Contrast-Adaptive-Sharpening/
class ImageCAS:
@classmethod
def INPUT_TYPES(cls):
@@ -361,7 +362,7 @@ class ImageCAS:
diag = (a, c, g, i)
mn2 = min_(diag)
mx2 = max_(diag)
mx2 = max_(diag)
mx = mx + mx2
mn = mn + mn2