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

Optimize VISTA3D #8123

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Optimize VISTA3D #8123

merged 5 commits into from
Oct 22, 2024

Conversation

binliunls
Copy link
Contributor

Fixes #8122 .

Description

As shown in this PR, the memory malloc and mask embedding for-loop are the bottlenecks that caused the vista3d slow inference. Therefore, this PR fixed them by adding the logic for malloc and replacing the for-loop with a tensor multiplication.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@borisfom
Copy link
Contributor

@binliunls : Why wasn't this PR integrated ?

@binliunls
Copy link
Contributor Author

@binliunls : Why wasn't this PR integrated ?

Need a reviewer to confirm these changes are reasonale. Will contact with them.

@yiheng-wang-nv
Copy link
Contributor

Hi @heyufan1995 , this PR looks good to me, could you help to double confirm it?

@KumoLiu
Copy link
Contributor

KumoLiu commented Oct 16, 2024

Hi @binliunls, do we want include this change in 1.4?

@yiheng-wang-nv
Copy link
Contributor

I contacted with he vista3d author @heyufan1995 offline, and he confirmed that the changes look good

@KumoLiu
Copy link
Contributor

KumoLiu commented Oct 22, 2024

/build

@KumoLiu KumoLiu enabled auto-merge (squash) October 22, 2024 10:52
@KumoLiu KumoLiu merged commit 684688a into Project-MONAI:dev Oct 22, 2024
28 checks passed
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

Successfully merging this pull request may close these issues.

Optimize the VISTA3D latency
4 participants