NAVras
帖子: 141
注册时间: 2016-04-24 1:32

Re: VapourSynth-waifu2x-opt r1 - 人妻2x图像放大/降噪滤镜

ACG 写了:哦哦,我又重新安装的,打开视频文件是没有问题了,不过现在又出了一个新问题:
-----------------------------------------------------------------------------------------------------------------
(中间内容手动略 {:cat_2}
-----------------------------------------------------------------------------------------------------------------
F5运行后显示"caffe"这个名字是没有属性的存在,而我 Waifu2X-caffe.dll 这个插件明明在呀····
没调用的话放自动加载目录,另外单一个waifu2x-caffe.dll哪里够,我记得好几个CUDA7.5的dll再加上cudnn64_*.dll都要放进去
头像
oribe
帖子: 8
注册时间: 2015-05-06 20:31

Re: VapourSynth-waifu2x-opt r1 - 人妻2x图像放大/降噪滤镜

代码: 全选

import vapoursynth as vs
import sys
import havsfunc as haf
import mvsfunc as mvf
core = vs.get_core(accept_lowercase=True)
core= vs.get_core(accept_lowercase=True,threads=16)
core.max_cache_size = 8000;
clip = core.lsmas.LWLibavSource(r"E:\[MS-raws]BDMV(WITS@TSDM@KF)\00000.m2ts")
clip = core.resize.Bicubic(clip, format=vs.RGBS)
clip = core.std.Trim(clip,0,3477)

clip = mvf.Depth(clip, depth=32)
clip = core.w2xc.Waifu2x(clip, noise=1, scale=1, block=128, photo=False, processor=0, gpu=1, list_proc=False, log=False)
clip = mvf.ToYUV(clip, css="444", depth=8)
res =clip.set_output()
这一段讲道理没什么问题才对,但是preview的时候报错
Error on frame 0 request:
Resize error 3074: no path between colorspaces
谷歌也没什么结果
我什么也不知道——by 只知道抱姐姐们大腿的oribe
► 显示剧情透露 自助网盘
NAVras
帖子: 141
注册时间: 2016-04-24 1:32

Re: VapourSynth-waifu2x-opt r1 - 人妻2x图像放大/降噪滤镜

oribe 写了: Error on frame 0 request:
Resize error 3074: no path between colorspaces
末尾用mvf.ToRGB()预览试试?
看起来又像preview的锅...
头像
oribe
帖子: 8
注册时间: 2015-05-06 20:31

Re: VapourSynth-waifu2x-opt r1 - 人妻2x图像放大/降噪滤镜

NAVras 写了: 末尾用mvf.ToRGB()预览试试?
看起来又像preview的锅...
谢谢回复。
clip = mvf.ToYUV(clip, css="444", depth=8)改成
clip = mvf.ToRGB(clip, depth=8)
并没有什么变化,依然是no path between colorspaces报错。即使是不使用core.w2xc.Waifu2x,仅仅对源做RGB转换,这个问题依然存在。
此外编码的时候也不顺利

代码: 全选

"D:\Program Files (x86)\VapourSynth\core32\vspipe
" --y4m "E:\[MS-raws]BDMV(WITS@TSDM@KF)\VTS_01 d8.vpy" - | "E:\[MS-raws]BDMV(W
ITS@TSDM@KF)\x264_32_tMod-10bit-all.exe" --preset ultrafast --demuxer y4m - --ou
tput "E:\[MS-raws]BDMV(WITS@TSDM@KF)\00012.264"
x264 [error]: could not open input file `-'
这个貌似和waifu2x没什么关系,我回去再看看
我什么也不知道——by 只知道抱姐姐们大腿的oribe
► 显示剧情透露 自助网盘
NAVras
帖子: 141
注册时间: 2016-04-24 1:32

Re: VapourSynth-waifu2x-opt r1 - 人妻2x图像放大/降噪滤镜

oribe 写了:

代码: 全选

clip = core.resize.Bicubic(clip, format=vs.RGBS)
如果不是preview,可能是这里需要指定 matrix_in=1
x264 [error]: could not open input file ‘-'
因为vs报错,没有输出给x264,解决上面就好啦
头像
oribe
帖子: 8
注册时间: 2015-05-06 20:31

Re: VapourSynth-waifu2x-opt r1 - 人妻2x图像放大/降噪滤镜

NAVras 写了: 如果不是preview,可能是这里需要指定 matrix_in=1
因为vs报错,没有输出给x264,解决上面就好啦
嗯,谢谢。指定matrix_in=1就可以正常预览了。
但是输出给x264就是这样的:

代码: 全选

E:\[MS-raws]BDMV(WITS@TSDM@KF)>"D:\Program Files (x86)\VapourSynth\core32\vspipe
" --y4m "E:\[MS-raws]BDMV(WITS@TSDM@KF)\VTS_01 d8.vpy" -   | "E:\[MS-raws]BDMV(W
ITS@TSDM@KF)\x264_32_tMod-10bit-all.exe" --preset ultrafast --demuxer y4m - --ou
tput "E:\[MS-raws]BDMV(WITS@TSDM@KF)\00012.264"
Script evaluation failed:
Python exception: Plugin D:\Program Files (x86)\VapourSynth\plugins32\flash3kyuu
_deband.dll already loaded (net.sapikachu.f3kdb)
Traceback (most recent call last):
  File "src\cython\vapoursynth.pyx", line 1491, in vapoursynth.vpy_evaluateScrip
t (src\cython\vapoursynth.c:26905)
  File "E:\[MS-raws]BDMV(WITS@TSDM@KF)\VTS_01 d8.vpy", line 6, in <module>
    core.std.LoadPlugin(r'D:\Program Files (x86)\VapourSynth\plugins32\flash3kyu
u_deband.dll')
  File "src\cython\vapoursynth.pyx", line 1383, in vapoursynth.Function.__call__
 (src\cython\vapoursynth.c:25212)
vapoursynth.Error: Plugin D:\Program Files (x86)\VapourSynth\plugins32\flash3kyu
u_deband.dll already loaded (net.sapikachu.f3kdb)
x264 [error]: could not open input file `-'
doom9上也没相应的解决办法……
我什么也不知道——by 只知道抱姐姐们大腿的oribe
► 显示剧情透露 自助网盘
NAVras
帖子: 141
注册时间: 2016-04-24 1:32

Re: VapourSynth-waifu2x-opt r1 - 人妻2x图像放大/降噪滤镜

oribe 写了: Python exception: Plugin D:\Program Files (x86)\VapourSynth\plugins32\flash3kyuu
_deband.dll already loaded (net.sapikachu.f3kdb)
{:cat_12} 嘞...这窝没见过
也许它说已经加载了那就把那行去掉...?
(是不是其他地方还放了相同插件?记得vs加载插件有先后顺序来着)
头像
oribe
帖子: 8
注册时间: 2015-05-06 20:31

Re: VapourSynth-waifu2x-opt r1 - 人妻2x图像放大/降噪滤镜

NAVras 写了: {:cat_12} 嘞...这窝没见过
也许它说已经加载了那就把那行去掉...?
(是不是其他地方还放了相同插件?记得vs加载插件有先后顺序来着)
这个就不知道了。有时间再看看好了。窝直接放到plugins目录自动加载的,应该不是这个问题
是我智障了,填错路径了。 {:xiaocry}
我什么也不知道——by 只知道抱姐姐们大腿的oribe
► 显示剧情透露 自助网盘

回到 “VapourSynth”