Home

Awesome

Dual Scale Dual Similarity (DS2)

Supported platform:

Linux

Package installation:

conda install the following packages in the recommended order:

MVTec dataset preparation:

Follow the steps to create mvtec dataset (for evaluation stage) and mvtec_train dataset (for pretraining stage)

MVTec LOCO dataset preparation:

KSDD2 dataset preparation:

MTD dataset preparation:

Run pretraining code for DS2 on MVTec (Stage 1):

Run evaluation code for DS2 on MVTec (Stage 2):

Run pretraining code for CutPaste_(3-way, one-for-all) on MVTec:

Run evaluation code for CutPaste_(3-way, one-for-all) on MVTec:

Run evaluation code for DS2 on MVTec LOCO:

Run evaluation code for DS2 on KSDD2:

Run evaluation code for DS2 on MTD:

Acknowledgement

The main architecture is adapted from https://github.com/zdaxie/PixPro (Propagate Yourself: Exploring Pixel-Level Consistency for Unsupervised Visual Representation Learning)

The implementation of DistAug and RotPred is adapted from https://github.com/google-research/deep_representation_one_class (LEARNING AND EVALUATING REPRESENTATIONS FOR DEEP ONE-CLASS CLASSIFICATION)

The implementation of CutPaste is adapted from https://github.com/Runinho/pytorch-cutpaste