Skip to content

This is unofficial implementation of Inpainting Transformer for Anomaly Detection(Intra)

Notifications You must be signed in to change notification settings

xd-HKPC/inpainting-transformer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inpainting-transformer

This is unofficial pytorch implementation of Inpainting Transformer for Anomaly Detection

We support train and test(slow version) for InTra models now. Updates would be coming soon.

Acknowledgement

This code is based on the following repositories: https://github.com/taikiinoue45/RIAD

Prerequisites

  • Python 3
    • torch
    • opencv
    • PIL
    • albumentations

Usage

Train

python main.py --image_dir=../mvtec_anomaly_detection/bottle/ --ckpt=./ckpt/InTra/MVTAD_bottle/

Inference

python main.py --image_dir=../mvtec_anomaly_detection/bottle/ --ckpt=./ckpt/InTra/MVTAD_bottle/ --is_infer

TODO(coming soon!)

Code refactoring

speed up inference

Add pretrained models

update prerequisites

update documents

About

This is unofficial implementation of Inpainting Transformer for Anomaly Detection(Intra)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%