This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import vapoursynth as vs | |
| import mvsfunc as mvf | |
| import havsfunc as haf | |
| import functools | |
| MODULE_NAME = 'vsTAAmbk' | |
| class Clip: | |
| def __init__(self, clip): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: Apache-2.0 | |
| # SPDX-FileCopyrightText: Copyright contributors to the vLLM project | |
| """ | |
| Whenever you add an architecture to this page, please also update | |
| `tests/models/registry.py` with example HuggingFace models for it. | |
| """ | |
| import importlib | |
| import os | |
| import pickle | |
| import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import subprocess as sp | |
| recursive = True | |
| src_dir = '.' | |
| src_dir = os.path.abspath(src_dir) | |
| def encode(tar_fp, dst_dir_fp): | |
| dst_fp = os.path.join(dst_dir_fp, os.path.basename(tar_fp).replace('FLAC', 'ALAC')) | |
| p = sp.Popen(['mkvmerge', '-i', tar_fp], stdout=sp.PIPE, stderr=sp.PIPE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from vapoursynth import core | |
| from muvsfunc import SSIM_downsample | |
| __version__ = "k.1.1.0" | |
| def nnedi3_rpow2(clip, rfactor=2, width=None, height=None, correct_shift=True, | |
| kernel="SSIM", nsize=0, nns=3, qual=None, etype=None, pscrn=None, | |
| opt=True, int16_prescreener=None, int16_predictor=None, exp=None, upsizer=None): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import vapoursynth as vs | |
| import rksfunc as rks | |
| import os | |
| import random | |
| from awsmfunc import FrameInfo | |
| from math import ceil | |
| from mvsfunc import ToRGB | |
| core = vs.core | |
| core.max_cache_size = 25600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Holy's ported AviSynth functions for VapourSynth. | |
| Main functions: | |
| daa | |
| daa3mod | |
| mcdaa3 | |
| santiag | |
| FixChromaBleedingMod | |
| Deblock_QED |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import argparse | |
| import sys | |
| import time | |
| import msvcrt | |
| parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter) | |
| parser.add_argument('-d', type=str, default='./', | |
| help='-d: specify the path to your workspace') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def GCFQP( | |
| vcfile: str, | |
| qpfile: str, | |
| output_chapter: str | |
| ): | |
| import xml.etree.ElementTree as xet | |
| import os | |
| os.system(f'mkvmerge -o tmp.mkv "{vcfile}"') | |
| os.system('ffprobe -hide_banner -v error -threads auto -show_frames -of xml -select_streams v:0 -i tmp.mkv > tmp.xml') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # In my (and Magic-Raws') configue, mkvmerge is placed in system path, | |
| # VSPipe.exe in sys.prefix, and x265 (plus x264) in sys.prefix//x26x, so that is default in this function. | |
| def SEM( | |
| fp_vc_input: str, | |
| segment_list: list, | |
| fp_qpfile: str, | |
| x26x_param: str, | |
| fp_vpy: str, | |
| fp_vc_output: str, | |
| force_expand: bool = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from vapoursynth import core, VideoNode | |
| def defilmgrain(clip: VideoNode, s1=16, s2=3, s3=3, g=1.5, dark=10000) -> VideoNode: | |
| from vapoursynth import YUV, GRAY, Error | |
| from fvsfunc import Depth | |
| from havsfunc import QTGMC | |
| from muvsfunc import MergeChroma | |
| from vsutil import get_y, iterate | |
| from dfttest2 import DFTTest | |
NewerOlder