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

超分视频后出现的画面大面积马赛克问题 #113

Open
LTEnjoy opened this issue Sep 26, 2022 · 3 comments
Open

超分视频后出现的画面大面积马赛克问题 #113

LTEnjoy opened this issue Sep 26, 2022 · 3 comments

Comments

@LTEnjoy
Copy link

LTEnjoy commented Sep 26, 2022

您好,当我使用模型进行动漫电影的超分来获得更高清晰度的视频时,我发现经常会有些片段出现大面积马赛克的问题(如下):
QQ截图20220926085953
QQ截图20220926090030
我想请问有没有什么比较好的办法解决这个问题呢?

@lj1995-computer-vision
Copy link
Collaborator

是编码格式问题。编码规格过高,解码器跟不上。
编码格式参数选择h264+medium预设保平安。

@LTEnjoy
Copy link
Author

LTEnjoy commented Sep 27, 2022

你好,我在加入了h264编码参数后,出来的超分视频依然有部分画面出现了马赛克的情况,请问这是不可避免的吗?
我设置的参数如下:
params = {'model_path': "weights_v3/up2x-latest-no-denoise.pth",
'scale': 2,
'tile': 0,
'nt': 4, # 每张卡的线程数
'half': True, # 半精度推理
'n_gpu': 4, # 使用的GPU数量
'encode_params': ['-crf', '18', '-preset', 'medium', '-vcodec', 'h264'],
'p_sleep': (0.005, 0.012),
'decode_sleep': 0.002,}

@suyunze
Copy link

suyunze commented Nov 6, 2022

码率太高了,试着关闭播放器的倍速和硬解,并放置在ssd中进行播放,基本就可以了。

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

3 participants