Wrapper for RGVS, RGSF, and various other functions
jaded-encoding-thaumaturgy / vs-rgtools Goto Github PK
View Code? Open in Web Editor NEWRgTools and related functions
License: MIT License
RgTools and related functions
License: MIT License
Wrapper for RGVS, RGSF, and various other functions
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
Avisynth has a script known as "Soothe" which is basically a very safe temporal soften filter for reducing shimmer introduced by sharpening.
Two new functions that make the diff against a common ref clip instead of their own blurred 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.
Ideally all forms of contrasharpen should be merged into a single function with the following features:
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.
Have you looked at sekrit's True Gaussian Blur port? I thought it might be useful here: HomeOfVapourSynthEvolution/havsfunc#42
Add ref
and alogorithm
from the CPU plugin to the vspyplugin cuda BilateralFilter.
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'
https://discord.com/channels/856381934052704266/995947736086097970/999878663950573589
https://discord.com/channels/985630730174472202/985630730174472205/1000835309673664593
Add the mean of the lower freq diff
Also make it like diff_merge, and support multiple clips (up to 13)
Instead of using a basic unsharp; we can try CAS: https://github.com/HomeOfVapourSynthEvolution/VapourSynth-CAS
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.