- Download the Dataset: Once you have downloaded the dataset, modify the
train.pyscript by setting the--train-data-pathand--val-data-pathto the absolute path of the extracted dataset folder. - Download Pre-trained Weights: Obtain the pre-trained weights required for training.
- Set Pre-trained Weights Path: In the
train.pyscript, set the--weightsparameter to the path where you have saved the pre-trained weights. - Start Training: With the dataset path
--data-pathand the pre-trained weights path--weightscorrectly set, you can now start training using thetrain.pyscript. During the training process, aclass_indices.jsonfile will be automatically generated. - Use Your Own Dataset: If you are using your own dataset, please arrange it according to the classification structure (i.e., one category corresponds to one folder, and within this, another folder for each package). Also, set the
num_classesin both the training and prediction scripts to match the number of categories in your dataset.
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|