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: add background to multiclass only #204

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

JSabadin
Copy link
Contributor

@JSabadin JSabadin commented Nov 6, 2024

Fix: Background Class for Multiclass Segmentation Only

Overview

In this update, we improved how background classes are handled in segmentation tasks within the LuxonisLoader.

  • Binary Segmentation: The background class is not added.
  • Multiclass Segmentation: The background class is added only when needed (multiclass segmentation)

Performance and Testing

We validated this change with the following tests:

  • Binary Segmentation: Training runs without errors or metric inconsistencies.
  • Overfitting Test: Conducted on a cows segmentation dataset of 200 images for 10 epochs:
    • From scratch: Achieved a Jaccard index of 0.82.
    • Using pretrained weights: Achieved a Jaccard index of 0.98.

@JSabadin JSabadin requested a review from a team as a code owner November 6, 2024 09:53
@JSabadin JSabadin requested review from kozlov721, klemen1999, tersekmatija and conorsim and removed request for a team November 6, 2024 09:53
@github-actions github-actions bot added the fix Fixing a bug label Nov 6, 2024
@JSabadin JSabadin requested a review from sokovninn November 6, 2024 09:53
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.47%. Comparing base (6bcbb11) to head (dd106d7).
Report is 12 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #204      +/-   ##
==========================================
+ Coverage   92.33%   92.47%   +0.14%     
==========================================
  Files          79       80       +1     
  Lines        4161     4227      +66     
==========================================
+ Hits         3842     3909      +67     
+ Misses        319      318       -1     

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

@klemen1999 klemen1999 merged commit f9d857b into main Nov 6, 2024
12 checks passed
@klemen1999 klemen1999 deleted the fix/add-background-to-multiclass-only branch November 6, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants