This project uses a fine-tuned VGG16 neural network to classify images into three distinct styles: Minimal, Modern, and Traditional. The code is written in Python, and the trained model is exported as an ONNX file for integration into a Unity project.
- Dataset Structure:
To train and test the model, the code expects datasets to follow the structure:
- The
trainfolder contains training images divided into three style categories:minimal,modern, andtraditional. - The
testfolder contains corresponding test images, following the same category structure. - Note: Ensure the folder structure remains unchanged after downloading the dataset.
Download the dataset from the provided Link and place the DS folder in the same directory as the code. Ensure the folder structure remains unchanged.
-
Training:
The script trains the VGG16 model using the data inDS/train. The test dataset inDS/testis used for evaluation. -
Export:
After training, the model is exported as an ONNX file, making it compatible with Unity projects.
- Python 3.x
- Required Python packages (exact versions will be specified later).
- Download the dataset from Link.
- Place the
DSfolder next to the project files. - Install the required packages:
pip install -r requirements.txt