GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - IntptrMax/PadimSharp: Train or use padim with C#

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
PadimSharp
PadimSharp
 
 
PadimSharpDemo
PadimSharpDemo
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
PadimSharp.sln
PadimSharp.sln
 
 
README.md
README.md
 
 

Repository files navigation

PadimSharp โ€“ Patch Distribution Modeling for Anomaly Detection in C#

PadimSharp brings the power of Padim (Patch Distribution Modeling) to the C# ecosystem.
Now you can train and detect anomalies entirely in C# โ€“ no Python needed!

๐ŸŽฏ Perfect for industrial inspection, quality control, and visual anomaly detection tasks.


โœจ Why PadimSharp?

  • Pure C# implementation โ€“ Train and run inference seamlessly in .NET
  • No external dependencies like Python or PyTorch
  • Tested on MVTec โ€“ Proven performance on real-world anomaly detection benchmarks
  • Built-in localization โ€“ See exactly where anomalies occur

๐Ÿš€ Quick Start

// Train on normal images
Config config = new Config();
BaseModel model = new BaseModel(config);
model.Train();

// Detect anomalies on new images
(bool predictGood, torch.Tensor image) = model.Predict(predictImagePath);

๐Ÿ“ฆ Features

  • โœ… Train on custom datasets with normal samples only
  • โœ… Fast inference suitable for real-time applications
  • โœ… Pixelโ€‘level anomaly localization
  • โœ… Works with standard .NET image libraries (TorchSharp, etc.)

๐Ÿงช Tested On

We've validated PadimSharp on the MVTec Anomaly Detection dataset โ€“ achieving reliable detection and localization across multiple object and texture categories.


๐Ÿ“ธ Example Result

Here's a real detection example from our MVTec tests:

Original Image Predicted Anomaly Mask
Original Mask

The model successfully identifies the anomalous region with pixel-level precision.


๐Ÿค Contributing

We welcome contributions! Feel free to open issues or PRs to improve performance, documentation, or compatibility.


Say goodbye to Pythonโ€‘based anomaly detection pipelines. Hello, PadimSharp. ๐Ÿš€

About

Train or use padim with C#

Resources

Readme
Apache-2.0 license
Activity

Stars

41 stars

Watchers

1 watching

Forks

11 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.