This project uses deep learning to classify product images as either defective (def_front) or non-defective (ok_front). It leverages a pretrained ResNet-18 model. The tool includes scripts for training the model and predicting defects from new images.
Python 3.8 or higher
python -m venv venv venv\Scripts\activate
pip install torch torchvision matplotlib pillow
python scripts/train.py
python scripts/predict.py