Giter VIP home page Giter VIP logo

vs-rgtools's Introduction

vs-rgtools's People

Contributors

dependabot[bot] avatar dnjulek avatar ichunjo avatar kgrabs avatar noizuy avatar setsugennoao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vs-rgtools's Issues

vsrgtools issue list

  • Reimplement verticalcleaner
  • adjust contrasharpen repair default value to 1 (to match AVS)
  • replace usage of ctmf
  • remove "compatbility" std.Expr calls where applicable, as they do not always have the same output

vs-rgtools breaks vs-dehalo

Hello,

I tried using vs-dehalo's fine_dehalo but it currently doesn't work, same with YAHR.

Script:
import vapoursynth as vs
from vsdehalo import fine_dehalo
core = vs.core

src = core.d2v.Source(r'sti_01.d2v', rff=False)
src = fine_dehalo(src)
src.set_output()

vsedit:
Failed to evaluate the script:
Python exception: cannot import name 'iterate' from 'vsrgtools.util' (C:\Program Files\Python310\lib\site-packages\vsrgtools\util.py)

Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 2890, in vapoursynth._vpy_evaluate
File "src\cython\vapoursynth.pyx", line 2891, in vapoursynth.vpy_evaluate
File "D:/Encoding/Projects/sti_01 - Copy (2).vpy", line 2, in
from vsdehalo import fine_dehalo
File "C:\Program Files\Python310\lib\site-packages\vsdehalo_init
.py", line 3, in
from . import alpha, masks, utils, warp
File "C:\Program Files\Python310\lib\site-packages\vsdehalo\alpha.py", line 15, in
from . import masks
File "C:\Program Files\Python310\lib\site-packages\vsdehalo\masks.py", line 5, in
from vsrgtools.util import PlanesT, iterate, norm_expr_planes, wmean_matrix
ImportError: cannot import name 'iterate' from 'vsrgtools.util' (C:\Program Files\Python310\lib\site-packages\vsrgtools\util.py)

P.S. How do I use vsdehalo's YAHRmask from YAHRmod or YAHR vanilla? What is PlanesT and what does it do?

Kind Regards

gauss_fmtc_blur needlessly resizes the clip

Gaussian kernel is non-interpolatory meaning a same-res resample can be performed to create a blur effect, the current function is instead resizing with bilinear and gauss which not only hurts performance but also quality.

Contrasharpen updates

Ideally all forms of contrasharpen should be merged into a single function with the following features:

  • Allow the user to specify a custom blur function/clip
  • Allow the user to specify a custom sharp function/clip
  • Allow the switching between Median and absolute difference limiting

With these we can keep the functionality of all the existing contrasharpen functions, but into one universal script instead.
To easily replicate behavior of the old scripts we can make presets for their different approaches to blurring, sharpening, etc.

AttributeError: 'function' object has no attribute 'format'

Occurs when attempting to pass an anonymous function in diff_merge and lehmer_diff_merge Maybe others.

import vapoursynth as vs
from vsrgtools import box_blur, diff_merge

core = vs.core

test = core.std.BlankClip()

diff_merge(test, test, lambda x: box_blur(x)).set_output()
  File "uhh.vpy", line 8, in <module>
    diff_merge(test*2, lambda x: box_blur(x)).set_output()
  File "/home/morgan/.local/lib/python3.10/site-packages/vsrgtools/freqs.py", line 86, in diff_merge
    blurs = [filt(clip, **kwargs) for filt, clip in zip(filter, clips)]
  File "/home/morgan/.local/lib/python3.10/site-packages/vsrgtools/freqs.py", line 86, in <listcomp>
    blurs = [filt(clip, **kwargs) for filt, clip in zip(filter, clips)]
  File "/home/morgan/.local/lib/python3.10/site-packages/vstools/functions/check.py", line 45, in _wrapper
    return function(*args, **kwargs)
  File "/home/morgan/.local/lib/python3.10/site-packages/vstools/functions/check.py", line 45, in _wrapper
    return function(*args, **kwargs)
  File "/home/morgan/.local/lib/python3.10/site-packages/vsrgtools/blur.py", line 56, in box_blur
    assert clip.format
AttributeError: 'function' object has no attribute 'format'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.