Comments (3)
Thanks. Can you elaborate on the "broken" part in the title? As far as I understood it, if the mask clip doesn't match the given clips in MaskedMerge
, it will simply use the last frame of the mask clip for the remaining frames. Does the old code actually break anything relevant?
from lvsfunc.
Used the mask_d = lvs.mask.BoundingBox((0, 785), (665, 294)).get_mask(clip)
and ended with a clip that is one frame long instead of the length of the clip (~2hr @23.97fps).
Problem there is:
a. the documentation states something different
b. when I use:
mask_d = lvs.mask.BoundingBox((0, 785), (665, 294)).get_mask(clip )
mask_d = core.std.InvertMask(mask_d)
mask_e = jvs.flat_mask(clip , radius=5, thr=5, use_gauss=False)
mask_m = core.std.Expr([mask_d, mask_e], 'x y +')
shrp = core.warp.AWarpSharp2(clip, thresh=200, blur=2, depth=32, planes=[1, 2])
filteredClip = core.minideen.MiniDeen( shrp, radius=[4, 1, 1], threshold=[10, 10, 10])
clip = core.std.MaskedMerge(clip , filteredClip, mask_m)
Problem here is that mask_m only is one frame long which is the bounding box merged with the first frame of clip and that mask is applied to the first the whole clip, which is in no way what is expexted. So yes, at least for me it breaks stuff. (+ the documentation if wrong) Maybe it works if mask_d and mask_e were switched in the core.std.Expr-call,... haven't tried.
from lvsfunc.
Gotcha. Well, now it properly returns the full-length clip, so that shouldn't be an issue anymore. If there's any other issues left, message me in the discord channel or leave another issue 👍
from lvsfunc.
Related Issues (20)
- Checklist for v0.4.3
- Make docs easier to read and more up-to-date HOT 2
- replace_ranges: Error when rfsing image source HOT 2
- Add python onnxruntime and/or AMD MIGraphX support other than vsmlrt in DPIR HOT 1
- tivtc_vfr: Function not releasing IVTC'd clip HOT 1
- vsaa required to use lvsfunc.misc.source? HOT 2
- I found scale.py is removed but the doc still had HOT 4
- dpir: `_ChromaLocation` property gets removed
- export_images
- autodb_dpir: A new autodeblocker tool using DPIR
- detail_mask takes parameter for chroma, but doesn't use it HOT 4
- Old function adoption list/requests HOT 9
- Checklist for v0.4.0
- bm3d.OPP2RGB/RGB2OPP is slower than fmtc/expr HOT 1
- Updated dec/ivtc_txt function with multiple parameters
- Avisynth port updates HOT 7
- Consider using the lambda
- Add FadeFramesSimple HOT 1
- descale: Fix rejecting var res in functions used internally
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvsfunc.