Skip to content

feat(model): Add INP-Former finished#3605

Open
alexriedel1 wants to merge 9 commits into
open-edge-platform:mainfrom
alexriedel1:inpformer-fixes
Open

feat(model): Add INP-Former finished#3605
alexriedel1 wants to merge 9 commits into
open-edge-platform:mainfrom
alexriedel1:inpformer-fixes

Conversation

@alexriedel1
Copy link
Copy Markdown
Contributor

@alexriedel1 alexriedel1 commented May 19, 2026

📝 Description

This builds on the great work by @abc-125 in PR #3451 !!
It implements the final steps of INP-Former to be used in anomalib. It builds on the official implementation https://github.com/luow23/INP-Former

I tested the cashew in the VisA Dataset with the following results


┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃        Test metric        ┃       DataLoader 0        ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│        image_AUROC        │     0.988800048828125     │
│        image_F1Max        │    0.9700000286102295     │
│       image_F1Score       │    0.9700000286102295     │
│        pixel_AUROC        │    0.9498065710067749     │
│        pixel_F1Max        │     0.554692268371582     │
│       pixel_F1Score       │     0.554692268371582     │
└───────────────────────────┴───────────────────────────┘

Compared to the reported paper results

         I-AUROC    I-AP    I-F1 max  P-AUROC  P-AP     P-F1 ma  AUPRO
cashew     98.5     99.3     97.0     93.8     59.9     60.6     89.7

✨ Changes

Select what type of change your PR is:

  • 🚀 New feature (non-breaking change which adds functionality)
  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🔄 Refactor (non-breaking change which refactors the code base)
  • ⚡ Performance improvements
  • 🎨 Style changes (code style/formatting)
  • 🧪 Tests (adding/modifying tests)
  • 📚 Documentation update
  • 📦 Build system changes
  • 🚧 CI/CD configuration
  • 🔧 Chore (general maintenance)
  • 🔒 Security update
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)

✅ Checklist

Before you submit your pull request, please make sure you have completed the following steps:

  • 📚 I have made the necessary updates to the documentation (if applicable).
  • 🧪 I have written tests that support my changes and prove that my fix is effective or my feature works (if applicable).
  • 🏷️ My PR title follows conventional commit format.

For more information about code review checklists, see the Code Review Checklist.

@abc-125
Copy link
Copy Markdown
Contributor

abc-125 commented May 20, 2026

@alexriedel1 Thank you for working on this model, I was busier than expected and never found time for this 😅

@samet-akcay
Copy link
Copy Markdown
Contributor

Thank you both of you for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants