Skip to content

Commit

Permalink
noise: hack function to not throw an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ichunjo committed Feb 5, 2022
1 parent a0c6527 commit c167850
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vardefunc/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ class BilateralMethod(Enum):
@property
def func(self) -> Callable[..., vs.VideoNode]:
return [
core.bilateral.Bilateral,
core.bilateralgpu.Bilateral,
core.bilateralgpu_rtc.Bilateral
][self.value]
lambda: core.bilateral.Bilateral,
lambda: core.bilateralgpu.Bilateral,
lambda: core.bilateralgpu_rtc.Bilateral
][self.value]()


def decsiz(clip: vs.VideoNode, sigmaS: float = 10.0, sigmaR: float = 0.009,
Expand Down

0 comments on commit c167850

Please sign in to comment.