Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Oct 15, 2023
1 parent 5440e7f commit e89f29f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vskernels/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,16 @@ def __enter__(self) -> LinearLightProcessing:
if self.sigmoid is True:
self.sigmoid = (6.5, 0.75)

sslope, scenter = self.sigmoid
self._sslope, self._scenter = self.sigmoid

if 1.0 > sslope or sslope > 20.0:
if 1.0 > self._sslope or self._sslope > 20.0:
raise CustomValueError('sigmoid slope has to be in range 1.0-20.0 (inclusive).', self.__class__)

if 0.0 > scenter or scenter > 1.0:
if 0.0 > self._scenter or self._scenter > 1.0:
raise CustomValueError('sigmoid center has to be in range 0.0-1.0 (inclusive).', self.__class__)

self._soffset = 1.0 / (1 + exp(sslope * scenter))
self._sscale = 1.0 / (1 + exp(sslope * (scenter - 1))) - self._soffset
self._soffset = 1.0 / (1 + exp(self._sslope * self._scenter))
self._sscale = 1.0 / (1 + exp(self._sslope * (self._scenter - 1))) - self._soffset

self._fmt = self.clip.format
assert self._fmt
Expand Down

0 comments on commit e89f29f

Please sign in to comment.