Unofficial implementation of PatchCore anomaly detection

文章推薦指數: 80 %
投票人數:10人

PatchCore anomaly detection. Unofficial implementation of PatchCore(new SOTA) anomaly detection model. Original Paper : Towards Total Recall ... Skiptocontent {{message}} hcw-00 / PatchCore_anomaly_detection Public Notifications Fork 75 Star 228 UnofficialimplementationofPatchCoreanomalydetection License Apache-2.0license 228 stars 75 forks Star Notifications Code Issues 23 Pullrequests 0 Actions Projects 0 Wiki Security Insights More Code Issues Pullrequests Actions Projects Wiki Security Insights hcw-00/PatchCore_anomaly_detection Thiscommitdoesnotbelongtoanybranchonthisrepository,andmaybelongtoaforkoutsideoftherepository. main Branches Tags Couldnotloadbranches Nothingtoshow {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default 1 branch 0 tags Code Latestcommit   Gitstats 46 commits Files Permalink Failedtoloadlatestcommitinformation. Type Name Latestcommitmessage Committime .vscode     capture     embeddings/carpet     old     sampling_methods     .gitignore     LICENSE     README.md     requirements.txt     train.py     Viewcode PatchCoreanomalydetection Usage MVTecADAUROCscore(PatchCore-1%,meanofntrials) CodeReference README.md PatchCoreanomalydetection UnofficialimplementationofPatchCore(newSOTA)anomalydetectionmodel OriginalPaper: TowardsTotalRecallinIndustrialAnomalyDetection(Jun2021) KarstenRoth,LathaPemula,JoaquinZepeda,BernhardSchölkopf,ThomasBrox,PeterGehler https://arxiv.org/abs/2106.08265 https://paperswithcode.com/sota/anomaly-detection-on-mvtec-ad updates(21/06/21): Iusedsklearn'sSparseRandomProjection(ep=0.9)forrandomprojection.I'mnotconfidentwiththis. Ithinkexactvalueof"bnearestpatch-features"isnotpresentedinthepaper.Ijustset9.(args.n_neighbors) IntermsofNNsearch,authorused"faiss".butnotimplementedinthiscodeyet. sampleembeddings/carpet/embedding.pickle=>coreset_sampling_ratio=0.001 updates(21/06/26): Acriticalissuerelatedto"locallyawarepatch"raisedandfixed.Scoretableisupdated. Usage #installpython3.6,torch==1.8.1,torchvision==0.9.1 pipinstall-rrequirements.txt pythontrain.py--phasetrainortest--dataset_path.../mvtec_anomaly_detection--categorycarpet--project_root_pathpath/to/save/results--coreset_sampling_ratio0.01--n_neighbors9' #forfasttryjustspecifyyourdataset_pathandrun pythontrain.py--phasetest--dataset_path.../mvtec_anomaly_detection--project_root_path./ MVTecADAUROCscore(PatchCore-1%,meanofntrials) Category Paper(image-level) Thiscode(image-level) Paper(pixel-level) Thiscode(pixel-level) carpet 0.980 0.991(1) 0.989 0.989(1) grid 0.986 0.975(1) 0.986 0.975(1) leather 1.000 1.000(1) 0.993 0.991(1) tile 0.994 0.994(1) 0.961 0.949(1) wood 0.992 0.989(1) 0.951 0.936(1) bottle 1.000 1.000(1) 0.985 0.981(1) cable 0.993 0.995(1) 0.982 0.983(1) capsule 0.980 0.976(1) 0.988 0.989(1) hazelnut 1.000 1.000(1) 0.986 0.985(1) metalnut 0.997 0.999(1) 0.984 0.984(1) pill 0.970 0.959(1) 0.971 0.977(1) screw 0.964 0.949(1) 0.992 0.977(1) toothbrush 1.000 1.000(1) 0.985 0.986(1) transistor 0.999 1.000(1) 0.949 0.972(1) zipper 0.992 0.995(1) 0.988 0.984(1) mean 0.990 0.988 0.980 0.977 CodeReference kcenteralgorithm: https://github.com/google/active-learning embeddingconcatfunction: https://github.com/xiahaifeng1995/PaDiM-Anomaly-Detection-Localization-master About UnofficialimplementationofPatchCoreanomalydetection Resources Readme License Apache-2.0license Stars 228 stars Watchers 8 watching Forks 75 forks Releases Noreleasespublished Packages0 Nopackagespublished Contributors3 hcw-00 ChangwooHa dhkdnduq ojun AnnaManasyan Languages Python 100.0% Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.



請為這篇文章評分?