找到放大材料(主要是动画)的原始分辨率
getnative的Python项目详细描述
Getnative公司
找到放大材料(主要是动画)的原始分辨率
使用
首先执行:
$ getnative [--args] inputFile
如果找不到getnative
,请尝试执行以下操作:
或
首先执行:
$ python -m getnative [--args] inputFile
就这样。在
要求
要运行此脚本,您需要:
- Python 3.6
- matplotlib
- VapoursynthR45+
- descale
- ffms2或lsmash或imwri
*imwri:ImageMagick7对于macOS和Linux是必需的
安装
通过以下方式安装:
$ pip install getnative
或
- 从github下载所有文件
- 通过
pip install -r requirements.txt
安装所有依赖项
建议安装Windows
从他们的网站安装这些程序:
- Vapoursynth(包括imwri)
一旦安装了Vapoursynth:
vsrepo.py install descale
vsrepo.py install ffms2
vsrepo.py install lsmas
安装getnative(和Python依赖项):
pip install getnative
输出示例
输入命令:
$ getnative -k bicubic -b 0.11 -c 0.51 -dir "../../Downloads" "../../Downloads/unknown.png"
终端输出:
Using imwri as source filter
500/500
Output Path: /Users/infi/Downloads/results
Bicubic b 0.11 c 0.51 AR: 1.78 Steps: 1
Native resolution(s) (best guess): 720p
done in 13.56s
输出图:
输出文本(摘要):
715 | 0.0000501392 | 1.07
716 | 0.0000523991 | 0.96
717 | 0.0000413640 | 1.27
718 | 0.0000593276 | 0.70
719 | 0.0000617733 | 0.96
720 | 0.0000000342 | 1805.60
721 | 0.0000599182 | 0.00
722 | 0.0000554626 | 1.08
723 | 0.0000413679 | 1.34
724 | 0.0000448137 | 0.92
725 | 0.0000455203 | 0.98
阿格斯
Property | Description | Default value | Type |
---|---|---|---|
frame | Specify a frame for the analysis. | num_frames//3 | Int |
kernel | Resize kernel to be used | bicubic | String |
bicubic-b | B parameter of bicubic resize | 1/3 | Float |
bicubic-c | C parameter of bicubic resize | 1/3 | Float |
lanczos-taps | Taps parameter of lanczos resize | 3 | Int |
aspect-ratio | Force aspect ratio. Only useful for anamorphic input | w/h | Float |
min-height | Minimum height to consider | 500 | Int |
max-height | Maximum height to consider | 1000 | Int |
is-image | Force image input | False | Action |
generate-images | Save detail mask as png | False | Action |
plot-scaling | Scaling of the y axis. Can be "linear" or "log" | log | String |
plot-format | Format of the output image. Specify multiple formats separated by commas. Can be svg, png, tif(f), and more | svg | String |
show-plot-gui | Show an interactive plot gui window. | False | Action |
no-save | Do not save files to disk. | False | Action |
stepping | This changes the way getnative will handle resolutions. Example steps=3 [500p, 503p, 506p ...] | 1 | Int |
output-dir | Sets the path of the output dir where you want all results to be saved. (/results will always be added as last folder) | (CWD)/results | String |
CLI参数
^{tb2}$警告
这个剧本的成功率远远不够完美。 如果可能的话,对来自同一源的不同帧进行多个测试。 明亮的场景通常会产生最准确的结果。 图形往往有多个槽口,因此脚本假定的分辨率可能不正确。 另外,由于autoguess的当前实现,脚本不可能 自动识别1080p产品。 必要时用你的眼睛或阿尼宾。在
谢谢
布吕布制造,卡格鲁,菲希特福,斯图克斯!,小盒子
帮忙吗?在
加入https://discord.gg/V5vaWwr(向自闭症编码寻求帮助)
- 项目
标签: