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

Improving normalization by reducing memory allocations #1889

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

ancestor-mithril
Copy link
Contributor

  • using np.ndarray.astype(..., copy=False) to prevent new array creation when the types are the same
  • using inplace numpy matrix operations
  • using inplace np.clip

This version is up to 20x times faster for big (512, 512, 512) CT cases.

* using `np.ndarray.astype(..., copy=False)` to prevent new array creation when the types are the same
* using inplace numpy matrix operations
* using inplace `np.clip`
@FabianIsensee FabianIsensee self-assigned this Jan 11, 2024
@FabianIsensee FabianIsensee merged commit e5644ea into MIC-DKFZ:master Jan 18, 2024
1 check failed
@FabianIsensee
Copy link
Member

thanks a lot!

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.

2 participants