YeLyuUT / UAVidToolKit

UAVidToolKit
44 stars 7 forks source link

UAVidToolKit

UAVidToolKit provides basic tools for easier usage of the UAVid dataset. Including label conversion, label visualization, performance evaluation and image label path pair txtfile preparation.

Install

Download the toolkit into the dataset folder as follows,

cd <UAVid dataset folder>
git clone https://github.com/YeLyuUT/UAVidToolKit.git
cd UAVidToolKit
python setup.py build_ext --inplace
cd ..

Rename training, validation and testing subfolders into 'train', 'valid' and 'test'. Or create symlink with cmd,

ln -s <train dir> train
ln -s <valid dir> valid
ln -s <test dir> test

The data structure should be like:

\UAVidDataset
    \train
        \seq
        ...
    \valid
        \seq
        ...
    \test
        \seq
        ...
    \UAVidToolKit

Usage

In the UAVid dataset folder, apply commands as follows:

e.g. python UAVidToolKit/evaluate.py -gt valid -p pred_valid -v

If add '-v', add valid set to txt.

e.g. python UAVidToolKit/writeImageLabelPathPairsToTxtFile.py -d ./ -t -v

A Message

If you have any question or new feature suggestion, please create an issue to let me know.