Skip to content

Conversation

@frgfm
Copy link
Owner

@frgfm frgfm commented Oct 27, 2025

This PR:

  • updates all uses of torchvision models and transforms to the latest recommended syntax
  • skip NaNs in metrics evaluation
  • ensure CAM cannot run on models with multiple FC layers
  • clean up documentation and add performance benchmark notebook

@frgfm frgfm added this to the 0.4.1 milestone Oct 27, 2025
@frgfm frgfm self-assigned this Oct 27, 2025
@github-actions github-actions bot added topic: docs Improvements or additions to documentation ext: tests Related to test module: methods Related to torchcam.methods topic: build ext: scripts module: metrics labels Oct 27, 2025
@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

❌ Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.35%. Comparing base (b13f9d4) to head (b1e9034).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
torchcam/methods/activation.py 71.42% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #367      +/-   ##
==========================================
- Coverage   97.56%   97.35%   -0.21%     
==========================================
  Files           8        8              
  Lines         452      454       +2     
==========================================
+ Hits          441      442       +1     
- Misses         11       12       +1     
Files with missing lines Coverage Δ
torchcam/methods/_utils.py 100.00% <100.00%> (ø)
torchcam/methods/gradient.py 100.00% <ø> (ø)
torchcam/metrics.py 98.00% <100.00%> (+0.32%) ⬆️
torchcam/methods/activation.py 96.96% <71.42%> (-0.73%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@frgfm frgfm modified the milestones: 0.4.1, 0.4.2, 0.5.0 Oct 27, 2025
@frgfm frgfm merged commit 4368f51 into main Oct 27, 2025
28 of 30 checks passed
@frgfm frgfm deleted the frgfm/benchmark-docs branch October 27, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext: scripts ext: tests Related to test module: methods Related to torchcam.methods module: metrics topic: build topic: docs Improvements or additions to documentation type: feat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants