mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-04-26 17:39:02 +00:00
fix small bug
This commit is contained in:
@@ -534,8 +534,8 @@ class Postprocessor:
|
||||
image[:, :, :] = warped
|
||||
|
||||
# Noise from bad VHS tracking at bottom
|
||||
yoffs_pixels = int((yoffs / 2.0) * 512.0)
|
||||
base_offset_pixels = int((base_offset / 2.0) * 512.0)
|
||||
yoffs_pixels = int((yoffs / 2.0) * h)
|
||||
base_offset_pixels = int((base_offset / 2.0) * h)
|
||||
noise_pixels = yoffs_pixels + base_offset_pixels
|
||||
if noise_pixels > 0:
|
||||
image[:, -noise_pixels:, :] = self._vhs_noise(image, height=noise_pixels)
|
||||
|
||||
Reference in New Issue
Block a user