-
- 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
-
- Insert result json files into predicted/
- Run the python script:
python convert_pred_darkflow_json.py
-
- Add class list to the file
class_list.txt
- Insert predicted objects files into predicted/
- Insert images into images/
- Run the python script:
python convert_pred_yolo.py
- Add class list to the file
E.g. remove ;
from:
<class_name>;<left>;<top>;<right>;<bottom>
to:
<class_name> <left> <top> <right> <bottom>
In the case you have the --ground-truth
or --predicted
files in the right format but with a specific char being used as a delimiter (e.g. ";"
), you can remove it by running:
python remove_delimiter_char.py --char ";" --ground-truth
- Run the
find_class.py
script and specify the class as argument, e.g.python find_class.py chair
- Run the
remove_class.py
script and specify the class as argument, e.g.python remove_class.py chair
- Run the
rename_class.py
script and specify the--current-class-name
and--new-class-name
as arguments, e.g.
python rename_class.py --current-class-name Picture Frame --new-class-name PictureFrame
Use this option instead of the above option when you have a lot of classes with spaces. It's useful when renaming classes with spaces become tedious (because you have a lot of them).
- Add class list to the file
class_list.txt
(the script will search this file for class names with spaces) - Run the
remove_space.py
script and specify the--delimiter
(default: "-") and--yes
if you want to force confirmation on all yes/no queries, e.g.
python remove_space.py --delimiter "-" --yes
This script ensures same number of files in ground-truth and predicted folder. When you encounter file not found error, it's usually because you have mismatched numbers of ground-truth and predicted files. You can use this script to move ground-truth and predicted 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
andpredicted
folders. - Run the
intersect-gt-and-pred.py
script to move non-intersected files into a backup folder (default:backup_no_matches_found
).
python intersect-gt-and-pred.py
- create
xml
folder to store xml files - run
python xml2txt.py
- a new folder
xml2txt
will appear automatically to save txt files.