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

nihui大佬,syncgap-mode 是啥意思? #11

Closed
zhouhang95 opened this issue Feb 22, 2022 · 3 comments
Closed

nihui大佬,syncgap-mode 是啥意思? #11

zhouhang95 opened this issue Feb 22, 2022 · 3 comments

Comments

@zhouhang95
Copy link

RT

@zhouhang95 zhouhang95 changed the title nihui大佬, noise-level 和 syncgap-mode 分别是啥意思? nihui大佬,syncgap-mode 是啥意思? Feb 22, 2022
@lj1995-computer-vision
Copy link

lj1995-computer-vision commented Feb 25, 2022

RT

@zhouhang95
syncgap-mode是一个速度和效果的trade-off。由于省显存需要,需要对全图进行分块分别处理,分别处理最后汇总成处理完的大图,整个pipeline中,有一些位置需要对一些gap参数同步(sync-gap)
0最快:不同patch之间可能造成切割线
1最慢:效果无损
2速度适中:稍微对背景虚化的保留损失一点,纹理没什么损失
3最快:相比2对背景虚化的保留损失更多一点,纹理没什么损失
我的建议:
1、如果画面整体模糊程度一致,预实验发现没有切割线痕迹,可用mode0
2、如果有切割线(或者凭经验肯定有,不用做实验了),那么根据经验(或者实验)判断画面有无虚化部分:
如果没有,可直接用mode3
3、如果有,可以拿有背景虚化的图试试1和2,对比2的损失是否可以接受,也可以对比看看3是否可以接受
4、拿有代表性的样本选定完mode后,使用该mode对全片进行超分

@zhouhang95
Copy link
Author

ok

@ArchieMeng
Copy link

ArchieMeng commented Jul 12, 2022

相比起含义,我更想知道syncgap-mode的实现中,每个阶段具体都做了什么。因为我这边Android移植的话,这部分可能要在Java层面去实现。我自己看源码没太看明白,是实际推理分为了两个阶段还是啥的?

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