-
Notifications
You must be signed in to change notification settings - Fork 123
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
关于算法速度问题解答 #3
Comments
Why is patch match slower than others? Is it inherently supposed to be slow or it is due to some data structures? |
Inherently. The main bottleneck of algorithm speed is plane optimization step, which can be ignored when frontal parallel windows mode is selected. |
But if that step is ignored, can it be called patchmatch algorithm? It would be modified version of patchmatch then. |
yep, you are right. |
Thanks |
Happy to help |
How should I check if the operating environment is in Release mode? I am running it in linux from command line as a cpp code. I am not using visual studio. |
add -O2 when compiling |
Thanks. I was using -O3 while compiling. |
-O3 is already in release mode
Diksha Moolchandani <[email protected]> 于2020年12月11日周五 下午1:47写道:
… I had used -O3 while compiling.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO55OWCJGCBJSVBU2YSTDVLSUGW75ANCNFSM4PJ7FRFQ>
.
|
不知道作者还看不看这个issue了,我觉得好像是代码中实现plane refinement的过程有点小问题,在论文中2.2节作者提到
也就是说,在后面的迭代中,视图优化部分使用的步长可以更小一些,隐含的意思应该是指每次迭代只做一次视图优化(步长随着迭代次数指数下降)。 |
代码里的disp_update每次循环完是更新为上一次的1/2的,是指数减小的。 |
指数减小是对的,我的意思是 DoPropagation()中的 PlaneRefine() 函数应该放到这边的for循环里,和其他Propagation应该是同级的 propa_left.DoPropagation(); 按照作者的意思应该是这样的,现在的实现可以保证有很好的结果,但是感觉速度上牺牲比较多 |
Hi @lingkang , Did you calculate the accuracy of this algorithm? I am getting a 14-15% error rate on the KITTI dataset. Can you confirm? |
我觉得不是这样, |
PatchMatch速度是比较慢的。确保你的运行环境是Release模式,若为Debug模式则会非常慢,对代码里带的示例数据,Release模式可以在几分钟至十几分钟跑出结果。
此外,如果你设置为前端平行窗口模式,则速度会加快很多,这样设置:
pms_option.is_fource_fpw = true
The text was updated successfully, but these errors were encountered: