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

speed and memory #13

Open
egbertYeah opened this issue Apr 17, 2024 · 3 comments
Open

speed and memory #13

egbertYeah opened this issue Apr 17, 2024 · 3 comments

Comments

@egbertYeah
Copy link

my inference size is 640 x 480, tested in 3090, when i set if_local as False, the pipe time is 1.22s, memory costing is large to 22G. however, when setting if_local to True, the pipe time is 2s, memeoy costing is 5.4G.

if_local: False

the result is so difference, Any suggestions for solving this problem?

@xuanlanxingkongxia
Copy link

The "if_local" choice try to pre-decide the matched pairs from multiple possible ones, and reduce the space cost. It just can provide a trade-off beween time and space.

@xuanlanxingkongxia
Copy link

But our pre-decision algorithm here is not efficient enough and seems to crop some of useful pairs incorrectly, maybe you can write a more efficient one?

@egbertYeah
Copy link
Author

I have some problems with the code implementation. Could you please explain roughly what these functions do? Thanks.

self.est_position(scores, scales, left.shape[2:], patch_scale)

cycle_num, second_layer_set, third_layer_set = split_patches(sum_cycle[0], height, width, max_cycle)

(new_left, new_right, x_scale_new, y_scale_new, average_new) = Compute_imgs(x_scale_reproj,

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