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

Dev #295

Merged
merged 20 commits into from
Mar 22, 2024
Merged

Dev #295

merged 20 commits into from
Mar 22, 2024

Conversation

hvgazula
Copy link
Contributor

@hvgazula hvgazula commented Mar 12, 2024

@hvgazula hvgazula marked this pull request as ready for review March 18, 2024 19:45
@hvgazula hvgazula requested a review from satra March 18, 2024 19:46
@satra
Copy link
Contributor

satra commented Mar 18, 2024

@hvgazula - happy to review, but perhaps see if you can fix the tests that are failing.

@satra
Copy link
Contributor

satra commented Mar 18, 2024

also quick note as we improve the codebase, let's make sure functions/methods have type annotation and have docstrings.

@hvgazula
Copy link
Contributor Author

Noted.

@hvgazula hvgazula marked this pull request as draft March 18, 2024 19:49
@hvgazula hvgazula marked this pull request as ready for review March 18, 2024 23:19
@hvgazula
Copy link
Contributor Author

@hvgazula - happy to review, but perhaps see if you can fix the tests that are failing.

It is tensorflow again 😬 . I limited it to 2.15.* for the time being.

@hvgazula
Copy link
Contributor Author

@satra Please see this https://github.com/hvgazula/nobrainer/actions/runs/8335069499/job/22809853267 This is a successful run of the ci.yml after restricting tensorflow. I am not sure why these checks failed in this repo. Please let me know how to proceed.

@satra
Copy link
Contributor

satra commented Mar 19, 2024

sent a separate PR. if that passes, we can merge that and then update this.

yes tensorflow 2.16 has been released with keras 3. i would start a separate branch to update to that and restrict it to 2.16+.

@hvgazula
Copy link
Contributor Author

The unetr is a 147M parameter model. The memory on GH runner is too limited to run this test. For the time being, I am disabling this test.

@hvgazula hvgazula marked this pull request as draft March 19, 2024 19:58
@satra
Copy link
Contributor

satra commented Mar 20, 2024

is the unetr that big even for a block size of 32? since this is not actually creating a model could you exercise the code with a smaller model?

@hvgazula
Copy link
Contributor Author

I tried 48 and my MBP M2 (16GB) struggled massively. The reduction in parameters was in the order of thousands. So, I don't think going down to 32 will help but I can try.

@hvgazula
Copy link
Contributor Author

Here
image

@satra
Copy link
Contributor

satra commented Mar 20, 2024

does it make sense that a reduction of 8 in each of 3 dimensions only reduces number of parameters by 3 million?

@satra satra merged commit c5263f0 into master Mar 22, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment