Skip to content

HwanWoongLee/Pytorch_AnormalyDetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pytorch_AnormalyDetection

  • Pytorch
  • Anomaly Detection
  • Python

Version

  • Python : 3.7.6
  • torch : 1.8.0+cu111
  • torchvision : 0.9.0+cu111
  • cv2 : 4.4.0
  • skimage : 0.14.2
  • matplotlib : 3.0.3
  • numpy : 1.18.2

Usage Example

Dataset

MvTEC Anormaly detection dataset.
Link : https://www.mvtec.com/company/research/datasets/mvtec-ad/

1. Open scripts/main.py file

1

2. Set Parameter for Train, Test

2

  • learning_rate : optimizer learning late
  • num_epoch : train epoch
  • batch_size : batch size
  • data_dir : train data directory
  • test_dir : test data directory
  • backup_dir : save model directory
  • train_loop : True = Run train, test, False = only test
  • use_ssim : True = use ssim, False = just diff (cv2.absdiff())
  • diff_thresh : diff threshold value

3. Run main.py

3

4. Result

  • use ssim

4

  • just cv2.absdiff

4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages