Skip to content

Commit

Permalink
v1.0.8 - Change RGB Conversion's kernel to Spline36
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed Dec 19, 2019
1 parent e8bdbbc commit 4431c81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="vsgan",
version="1.0.7",
version="1.0.8",
author="PRAGMA",
author_email="[email protected]",
description="VapourSynth GAN Implementation using RRDBNet, based on ESRGAN's implementation",
Expand Down
4 changes: 1 addition & 3 deletions vsgan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ def load_model(self, model, scale):
self.rrdb_net_model = self.rrdb_net_model.to(self.torch_device)

def run(self, clip, chunk=False):
# remember the clip's original format
original_format = clip.format
# convert clip to RGB24 as it cannot read any other color space
buffer = mvsfunc.ToRGB(clip, depth=8) # expecting RGB24 8bit
buffer = mvsfunc.ToRGB(clip, depth=8, kernel="spline36") # expecting RGB24 (RGB 8bpp)
# send the clip array to execute()
results = []
for c in self.chunk_clip(buffer) if chunk else [buffer]:
Expand Down

0 comments on commit 4431c81

Please sign in to comment.