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

Adding 2D Equivariant Feature Extraction Example #8233

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

djoca77
Copy link

@djoca77 djoca77 commented Nov 21, 2024

Fixes # .

Description

A few sentences describing the changes proposed in this pull request.

Adds an example of a 2D model that extracts equivariant features from a 2D slice of a 3D brain MRI volume. Changes also include adding an optional dependency and a testing data that is currently in the testing_data folder but will be added to the MONAI-extra-test-data release. Project-MONAI/MONAI-extra-test-data#17

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.

@djoca77 djoca77 marked this pull request as ready for review November 22, 2024 14:54
@@ -61,3 +61,4 @@ pyamg>=5.0.0
git+https://github.com/facebookresearch/segment-anything.git@6fdee8f2727f4506cfbbe553e23b895e27956588
onnx_graphsurgeon
polygraphy
e3nn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @djoca77, thanks for your contribution.
I didn't quite understand the purpose of this PR. If the goal is to include a 2D equivariant feature extraction feature, it would be better to integrate it into the core and add relevant test cases, rather than just introducing the test case and dependency here. You can also add some example tutorials in the tutorial repo.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thank you for the feedback. Could you elaborate more on what core I should integrate the feature into in the monai folder? Any guidance would be much appreciated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @djoca77, you may need to minimize code repetition as much as possible by organizing related components into appropriate structures. For instance, place convolution operations within the network block, and replace loading .nii files withLoadImage from MONAI. If you find no highly generic components to extract, consider adding this as an example in the tutorial for clarity and reference. Thanks.

@KumoLiu KumoLiu requested review from ericspod and Nic-Ma November 25, 2024 05:39
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