This project uses TensorFlow2.0 for image classification tasks.
- Python 3.x (My Python version is 3.6.8)
- TensorFlow version: 2.0.0-beta1
- The file directory of the dataset should look like this:
${dataset_root}
|——train
| |——class_name_0
| |——class_name_1
| |——class_name_2
| |——class_name_3
|——valid
| |——class_name_0
| |——class_name_1
| |——class_name_2
| |——class_name_3
|——test
|——class_name_0
|——class_name_1
|——class_name_2
|——class_name_3
Run the script
python train.py
to train the network on your image dataset, the final model will be stored. You can also change the corresponding training parameters in the config.py
.
To evaluate the model's performance on the test dataset, you can run evaluate.py
.
The structure of the network is defined in model_definition.py
, you can change the network structure to whatever you like.