Skip to content

Conversation

@shaneahmed
Copy link
Member

  • Add SCCNN architecture.

- Add SCCNN architecture.
- Add docs to SCCNN architecture.
@codecov
Copy link

codecov bot commented Jul 27, 2022

Codecov Report

Merging #434 (3ef7ab3) into develop (1ba4272) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #434      +/-   ##
===========================================
+ Coverage    98.59%   98.62%   +0.02%     
===========================================
  Files           58       59       +1     
  Lines         5784     5872      +88     
  Branches      1047     1049       +2     
===========================================
+ Hits          5703     5791      +88     
  Misses          69       69              
  Partials        12       12              
Impacted Files Coverage Δ
tiatoolbox/models/architecture/micronet.py 100.00% <ø> (ø)
tiatoolbox/models/architecture/sccnn.py 100.00% <100.00%> (ø)
tiatoolbox/models/architecture/unet.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

- Add preproc function to sccnn.py.
- Add infer_batch function to sccnn.py.
- Add postproc function to sccnn.py.
@John-P John-P added the enhancement New feature or request label Jul 27, 2022
@John-P John-P changed the title NEW: Add SCCNN architecture. NEW: Add SCCNN architecture Jul 27, 2022
@John-P John-P changed the title NEW: Add SCCNN architecture NEW: Add SCCNN Architecture Jul 27, 2022
- Add tests for sccnn.py.
@shaneahmed shaneahmed changed the title NEW: Add SCCNN Architecture NEW: Add SCCNN Cell Detection Architecture Jul 27, 2022
@shaneahmed shaneahmed marked this pull request as ready for review July 27, 2022 12:07
@shaneahmed shaneahmed self-assigned this Jul 27, 2022
Copy link
Contributor

@John-P John-P left a comment

Choose a reason for hiding this comment

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

Thank you for adding this model! Looks good but I think some of the function names, especially for the layers and a bit inconsistent and vague. More verbose but helpful names would improve the readability and maintainability of the code.

- Refactor functions to meaningful names.
- Refactor variables to meaningful names.
Copy link
Contributor

@John-P John-P left a comment

Choose a reason for hiding this comment

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

Looks good, just some type hint, docstring, and formatting suggestions.

- Adds information for tests in docstring.
- Fixing type hint, docstring, and formatting.
- Fix G200 Logging statement uses exception.
- Fix Unsupported operand |.
@shaneahmed shaneahmed requested a review from John-P August 12, 2022 16:54
- Update sccnn-conic
-  Fix docstring.
@shaneahmed shaneahmed removed the request for review from vqdang August 16, 2022 11:04
- Fix sccnn docstring.
Update tiatoolbox/models/architecture/sccnn.py
@shaneahmed shaneahmed requested a review from vqdang August 19, 2022 10:27
Copy link
Contributor

@John-P John-P left a comment

Choose a reason for hiding this comment

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

Looks good. I like Dang's suggestion of moving the spatially constrained layer into its own class (easier to re-use), but otherwise good. Happy either way.

@shaneahmed
Copy link
Member Author

Looks good. I like Dang's suggestion of moving the spatially constrained layer into its own class (easier to re-use), but otherwise good. Happy either way.

I had discussed this with Dang earlier. This meant retraining the model separately. So we decided not to do this.

Copy link
Collaborator

@mostafajahanifar mostafajahanifar left a comment

Choose a reason for hiding this comment

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

Thanks Shan for revising this code. All look good now.

I just add a comment about moving the preprocessing into Forward method (I made the same suggestion for MapDe as well). I'm happy for you to merge the branch after that change :-)

@shaneahmed shaneahmed merged commit e4534d1 into develop Sep 2, 2022
@shaneahmed shaneahmed deleted the feature-sccnn-detection branch September 2, 2022 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants