Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错 #52

Closed
carl-Victor opened this issue Mar 1, 2022 · 3 comments
Closed

报错 #52

carl-Victor opened this issue Mar 1, 2022 · 3 comments

Comments

@carl-Victor
Copy link

video_upscaler=VideoRealWaifuUpScaler(nt,n_gpu,scale,half,tile,p_sleep,decode_sleep,encode_params,cache_mode,alpha)

video_upscaler=VideoRealWaifuUpScaler(nt,n_gpu,scale,half,tile,p_sleep,decode_sleep,encode_params,cache_mode,alpha)
def init(self,nt,n_gpu,scale,half,tile,cache_mode,p_sleep,decode_sleep,encode_params):

位置参数传递位置错误 引发报错

@lj1995-computer-vision
Copy link
Collaborator

video_upscaler=VideoRealWaifuUpScaler(nt,n_gpu,scale,half,tile,p_sleep,decode_sleep,encode_params,cache_mode,alpha)

video_upscaler=VideoRealWaifuUpScaler(nt,n_gpu,scale,half,tile,p_sleep,decode_sleep,encode_params,cache_mode,alpha) def init(self,nt,n_gpu,scale,half,tile,cache_mode,p_sleep,decode_sleep,encode_params):

位置参数传递位置错误 引发报错

感谢提醒,是我在更新20220227版本的时候,忘记添加alpha参数了。
现在已修复,大佬您再跑跑试试看?

@carl-Victor
Copy link
Author

upcunet_v3.py完全没有用config.py内的配置,默认把input_dir文件夹内所有图片的所有方案输出一遍。
而循环过程中tile_mode 从0开始,一但原图过大且显存不足会引发报错。
中途报错tmp临时文件不会删除(没啥影响)

input_dir="%s/input1080P"%root_path

output_dir="%s/opt-dir-all-test"%root_path

tmp_path = os.path.join(root_path, "tmp", "%s.%s" % (int(time.time() * 1000000), suffix))

input_dir(input1080P)、 output_dir(opt-dir-all-test)、 tmp_path(tmp)均未给出文件夹,代码中只创建了output_dir文件夹

for weight_path, scale in [("updated_weights/up2x-latest-denoise3x.pth", 2),("updated_weights/up3x-latest-denoise3x.pth", 3),("updated_weights/up4x-latest-denoise3x.pth", 4),]:

这里的模型文件夹名称用的是updated_weights,项目内的文件夹和config.py内用的都是weights_v3。
报错:FileNotFoundError: [Errno 2] No such file or directory: 'updated_weights/up2x-latest-denoise3x.pth'

def __init__(self,nt,n_gpu,scale,half,tile,cache_mode,alpha,p_sleep,decode_sleep,encode_params,cache_mode,alpha):

参数传递重复(最后两个)

@lj1995-computer-vision
Copy link
Collaborator

upcunet_v3.py完全没有用config.py内的配置,默认把input_dir文件夹内所有图片的所有方案输出一遍。 而循环过程中tile_mode 从0开始,一但原图过大且显存不足会引发报错。 中途报错tmp临时文件不会删除(没啥影响)

input_dir="%s/input1080P"%root_path

output_dir="%s/opt-dir-all-test"%root_path

tmp_path = os.path.join(root_path, "tmp", "%s.%s" % (int(time.time() * 1000000), suffix))

input_dir(input1080P)、 output_dir(opt-dir-all-test)、 tmp_path(tmp)均未给出文件夹,代码中只创建了output_dir文件夹

for weight_path, scale in [("updated_weights/up2x-latest-denoise3x.pth", 2),("updated_weights/up3x-latest-denoise3x.pth", 3),("updated_weights/up4x-latest-denoise3x.pth", 4),]:

这里的模型文件夹名称用的是updated_weights,项目内的文件夹和config.py内用的都是weights_v3。
报错:FileNotFoundError: [Errno 2] No such file or directory: 'updated_weights/up2x-latest-denoise3x.pth'

def __init__(self,nt,n_gpu,scale,half,tile,cache_mode,alpha,p_sleep,decode_sleep,encode_params,cache_mode,alpha):

参数传递重复(最后两个)

upcunet_v3.py的main里面是我写本地测试的代码,要尽量覆盖多个参数,不是直接给用户直接用的。这个文件是给开发者调upscaler类用的,调法参考下面。win版本打包里面,直接不会有main这些。

inference_video.py参数传递重复错误已修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants