Class balanced retinanet with Visdrone dataset. Followed by Keras-retinanet, we change the focal loss to class-balanced focal loss(https://openaccess.thecvf.com/content_CVPR_2019/papers/Cui_Class-Balanced_Loss_Based_on_Effective_Number_of_Samples_CVPR_2019_paper.pdf) under retinanet and add VisDrone-2019 dataset as one of the trainingsets.
- Clone this repository.
- In the repository, execute
pip install . --user
. Note that due to inconsistencies with howtensorflow
should be installed, this package does not define a dependency ontensorflow
as it will try to install that (which at least on Arch Linux results in an incorrect installation). Please make suretensorflow
is installed as per your systems requirements. - Alternatively, you can run the code directly from the cloned repository, however you need to run
python setup.py build_ext --inplace
to compile Cython code first. - Optionally, install
pycocotools
if you want to train / test on the MS COCO dataset by runningpip install --user git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI
.
# Running directly from the repository:
keras_retinanet/bin/train.py visdataset /path/to/VisDrone/dataset
More information please reference to keras-retinanet
This code is extended from the following repositories.
- keras-retinanet Thank the authors for releasing their codes. Please also consider citing their works.