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

Upsample mode parameter for UpBlock #76

Merged
merged 3 commits into from
Sep 22, 2024
Merged

Conversation

sokovninn
Copy link
Member

This PR adds an upsample_mode parameter to the UpBlock, which is used in the default segmentation head, to avoid checkerboard artifacts caused by the nn.ConvTranspose2d layer.

Now, nn.Upsample is the default choice in the UpBlock.

@sokovninn sokovninn added the enhancement New feature or request label Sep 20, 2024
@sokovninn sokovninn self-assigned this Sep 20, 2024
@sokovninn sokovninn requested a review from a team as a code owner September 20, 2024 14:29
@sokovninn sokovninn requested review from kozlov721, klemen1999, tersekmatija and conorsim and removed request for a team September 20, 2024 14:29
Copy link

github-actions bot commented Sep 20, 2024

Test Results

  1 files    1 suites   22m 51s ⏱️
129 tests 129 ✅ 0 💤 0 ❌
180 runs  180 ✅ 0 💤 0 ❌

Results for commit 32824d0.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Sep 20, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
5291 5103 96% 90% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
luxonis_train/nodes/blocks/blocks.py 96% 🟢
TOTAL 96% 🟢

updated for commit: 32824d0 by action🐍

ConvModule(out_channels, out_channels, kernel_size=3, padding=1),
layers = []

if upsample_mode == "transpose":
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be "cov_transpose"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, right, thanks!

Copy link
Collaborator

@kozlov721 kozlov721 left a comment

Choose a reason for hiding this comment

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

LGTM

@sokovninn sokovninn merged commit 5408034 into dev Sep 22, 2024
8 checks passed
@sokovninn sokovninn deleted the feat/segmentation-improvement branch September 22, 2024 20:27
kozlov721 pushed a commit that referenced this pull request Oct 9, 2024
Co-authored-by: GitHub Actions <actions@github.com>
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.

4 participants