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

🐛 Fix MapDe dist_filter Shape #914

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

🐛 Fix MapDe dist_filter Shape #914

wants to merge 1 commit into from

Conversation

Jiaqi-Lv
Copy link
Contributor

@Jiaqi-Lv Jiaqi-Lv commented Feb 21, 2025

  • Fix dist_filter in MapDe model for multi-class output.

Explanation:
Previously, if we set num_class to more than 1, the model would still output 1 channel. This was because the dist_filter always had size of 1 in its first dimension, however the first dimension determines the number of output channels in the tensor produced by torch.functional.F.conv2d.
I changed this by simply repeating the filters the match the number of output classes.

@Jiaqi-Lv Jiaqi-Lv changed the title Fix issue with 'MapDe' 'dist_filter' shape Fix issue with MapDe dist_filter shape Feb 21, 2025
@Jiaqi-Lv Jiaqi-Lv assigned Jiaqi-Lv and unassigned Jiaqi-Lv Feb 21, 2025
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.88%. Comparing base (ba0109f) to head (1ca9069).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #914      +/-   ##
===========================================
- Coverage    99.90%   99.88%   -0.03%     
===========================================
  Files           70       70              
  Lines         8735     8736       +1     
  Branches      1149     1149              
===========================================
- Hits          8727     8726       -1     
- Misses           3        5       +2     
  Partials         5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shaneahmed shaneahmed changed the title Fix issue with MapDe dist_filter shape 🐛 Fix issue with MapDe dist_filter shape Feb 21, 2025
@shaneahmed shaneahmed changed the title 🐛 Fix issue with MapDe dist_filter shape 🐛 Fix MapDe dist_filter Shape Feb 21, 2025
@shaneahmed shaneahmed added this to the Release v1.7.0 milestone Feb 21, 2025
@shaneahmed shaneahmed added the bug Something isn't working label Feb 21, 2025
@Jiaqi-Lv
Copy link
Contributor Author

Not sure why codecov failed

@Jiaqi-Lv Jiaqi-Lv marked this pull request as ready for review February 21, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants