This implementation of YOLO with TensorFlow.
Clone YOLO_tiny repository
$ git clone https://github.com/leeyoshinari/YOLO_tiny.git
$ cd YOLO_tiny
Download Pascal VOC2007 dataset, and put the dataset into data/Pascal_voc
.
if you download other dataset, you also need to modify file paths.
Download weights file yolo_tiny, and put weight file into data/output
.
Or you can also download my training weights file YOLO_tiny.
Modify configuration into yolo/config.py
.
Training
$ python train.py
Test
$ python test.py
To train the model on your own dataset, you should need to modefy:
Put all the images into the Images
folder, put all the labels into the Labels
folder. Select a part of the image for training, write this part of the image filename into train.txt
, the remaining part of the image filename written in test.txt
. Then put the Images
, Labels
, train.txt
and test.txt
into data/dataset
. Put weight file in data/output
.
config.py
modify the CLASSES.
train.py
replacefrom utils.pascal_voc import pascal_voc
with from utils.preprocess import preprocess
, and replace pascal = pascal_voc()
with pascal = preprocess()
.