-
- Insert ground-truth xml files into ground-truth/
- Run the python script:
python convert_gt_xml.py
-
- Add class list to the file
class_list.txt
- Insert ground-truth files into ground-truth/
- Insert images into images/
- Run the python script:
python convert_gt_yolo.py
- Add class list to the file
-
- Add or update the class list to the file
class_list.txt
- Use the parameter
--gt
to set the ground-truth source. - Run the python script:
python3 convert_keras-yolo3.py --gt <gt_file_path>
- Supports only python 3.
- This code can handle recursive annotation structure. Just use the
-r
parameter. - The converted annotation is placed by default in a new from_kerasyolo3 folder. You can change that with the parameter
-o
. - The format is defined according with github.com/qqwweee/keras-yolo3
- Add or update the class list to the file
-
- Insert result json files into detection-results/
- Run the python script:
python convert_dr_darkflow_json.py
-
After runnuning darknet on a list of images, e.g.:
darknet.exe detector test data/voc.data yolo-voc.cfg yolo-voc.weights -dont_show -ext_output < data/test.txt > result.txt
- Copy the file
result.txt
to the folderextra/
- Run the python script:
python convert_dr_yolo.py
- Copy the file
-
- Add or update the class list to the file
class_list.txt
- Use the parameter
--dr
to set the detection-results source. - Run the python script:
python3 convert_keras-yolo3.py --dr <dr_file_path>
- Supports only python 3.
- This code can handle recursive annotation structure. Just use the
-r
parameter. - The converted annotation is placed by default in a new from_kerasyolo3 folder. You can change that with the parameter
-o
. - The format is defined according with github.com/gustavovaliati/keras-yolo3
- Add or update the class list to the file
- Run the
find_class.py
script and specify the class as argument, e.g.python find_class.py chair
This script ensures same number of files in ground-truth and detection-results folder. When you encounter file not found error, it's usually because you have mismatched numbers of ground-truth and detection-results files. You can use this script to move ground-truth and detection-results files that are not in the intersection into a backup folder (backup_no_matches_found). This will retain only files that have the same name in both folders.
- Prepare
.txt
files in yourground-truth
anddetection-results
folders. - Run the
intersect-gt-and-dr.py
script to move non-intersected files into a backup folder (default:backup_no_matches_found
).
python intersect-gt-and-dr.py