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 torch | |
| import torch.nn as nn | |
| import os | |
| import sys | |
| import onnx | |
| sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | |
| from models.SR_models import Bicubic_plus_plus |
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 sys | |
| import cv2 | |
| import glob | |
| import numpy as np | |
| import onnx | |
| import onnxruntime as ort | |
| import torch | |
| import torch.onnx | |
| import torch.nn as nn |
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
| """ | |
| Export GRDFNet model to ONNX format. | |
| Supports three recommended configurations: | |
| - Standard: num_sets=3, feature_channels=32 (balanced quality/speed) | |
| - HighQuality: num_sets=6, feature_channels=48 (best quality, ~4x slower) | |
| - Lightweight: num_sets=3, feature_channels=24 (fast, for video inference) | |
| """ | |
| import sys | |
| import os |
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
| local assdraw = require "mp.assdraw" | |
| local usr_bars = "brightness,contrast,gamma,saturation,hue," | |
| local enabled = false | |
| local active_bars = {} | |
| local bar_being_dragged = nil | |
| local stale = false |
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 PIL import Image | |
| from multiprocessing import * | |
| from math import * | |
| import operator | |
| import numpy as np | |
| # Subsample offsets for orthogonal and diagonal areas: | |
| SUBSAMPLE_OFFSETS_ORTHO = [ 0.0, #0 | |
| -0.25, #1 |
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
| """ | |
| 转换hqx纹理 | |
| """ | |
| from PIL import Image | |
| import sys | |
| IMAGE_FILENAME = "hq2x.png" | |
| OUTPUT_FILENAME = "hq2x.txt" | |
| TEXTURE_NAME = "HQX2" |
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
| --[[ | |
| 文档_ 无 | |
| 强制自动刷新mpv的overlay | |
| 可用的快捷键示例(在 input.conf 中写入): | |
| <KEY> script-message F5-timer stop # 停止刷新 | |
| <KEY> script-message F5-timer resume # 恢复刷新 |
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
| --[[ | |
| SOURCE_ https://github.com/wiiaboo/mpv-scripts/blob/master/audio-balance.lua | |
| COMMIT_ 20220811 03cfc0e39682a73d9d24a6e01a3c02716a019d1d | |
| 声道平衡 | |
| 立体声使用的是仅削弱单边的逻辑,但多声道仍沿用了原设计(存在问题)中的混合思路 | |
| 示例在 input.conf 中写入 : | |
| Ctrl+A script-binding audio_balance/bal2l # 平衡偏左(步进1%,按住可持续触发) |
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
| --[[ | |
| 依赖的前置脚本: https://github.com/hooke007/MPV_lazy/tree/main/portable_config/scripts/uosc | |
| 用于: | |
| 实时简易快速切换 --cscale --scale --dscale --tscale 的各值 | |
| 快速预览各用户着色器(仅解析 `~~/shaders/` 目录) | |
| input.conf 示例: |
NewerOlder