TextBoxes++ re-implementation using tensorflow. This project is greatly inspired by slim project And many functions are modified based on SSD-tensorflow project
Author: Zhisheng Zou [email protected]
python2.7/python3.5
tensorflow-gpu 1.8.0
at least one gpu
- Getting the xml file like this example xml and put the image together because we need the format like this standard xml
- picture format: *.png or *.PNG
- Getting the xml and flags
ensure the XML file is under the same directory as the corresponding image.execute the code: convert_xml_format.py
python tools/convert_xml_format.py -i in_dir -s split_flag -l save_logs -o output_dir
- in_dir means the absolute directory which contains the pic and xml
- split_flag means whether or not to split the datasets
- save_logs means whether to save train_xml.txt
- output_dir means where to save xmls
- Getting the tfrecords
python gene_tfrecords.py --xml_img_txt_path=./logs/train_xml.txt --output_dir=tfrecords
- xml_img_txt_path like this train xml
- output_dir means where to save tfrecords
- Training
python train.py --train_dir =some_path --dataset_dir=some_path --checkpoint_path=some_path
- train_dir store the checkpoints when training
- dataset_dir store the tfrecords for training
- checkpoint_path store the model which needs to be fine tuned
- Testing
python test.py -m /home/model.ckpt-858 -o test
- -m which means the model
- -o which means output_result_dir
- -i which means the test img dir
- -c which means use which device to run the test
- -n which means the nms threshold
- -s which means the score threshold
- when you are training the model, you can run the eval_result.py to eval your model and save the result