This repository is customized based on EfficientAD.
-
Modularization:
- The codebase has been modularized for easier management and scalability.
-
Training Process Update:
- The training loop has been adjusted from an iteration-based approach to an epoch-based approach.
-
Loss Function Adjustment:
- The penalty loss has been removed when calculating ( L_{st} ).
-
Visualization during Inference:
- Added support for visualization during the inference phase.
Please refer to the original EfficientAD documentation for setup instructions. This repository retains compatibility with the original setup process.
- Python 3.11
- Required libraries can be installed using:
pip install -r requirements.txt
To train the model:
python train.py -s "{dataset directory}" -m "{model size}"To run inference with visualization:
python inference.py -t "{testset directory}" -m "{model directory}
