资源算法FocalLoss

FocalLoss

2019-09-10 | |  65 |   0 |   0

softmaxfocalloss

the focal loss in Aritcal Focal Loss for Dense Object Detection

Code is test on MxNet 0.11.0

Installation

  1. Clone the softmaxfocalloss repository, and we'll call the directory that you cloned softmaxfocalloss as ${FOCAL_LOSS_ROOT}.

git clone https://github.com/yuantangliang/softmaxfocalloss.git
  1. Install MXNet:

    3.1 Clone MXNet and checkout to MXNet by

    git clone --recursive https://github.com/dmlc/mxnet.git
    git submodule update

    3.2 Copy operators in $(FOCAL_LOSS_ROOT)/source/softmaxfocal_output.xxx by

    cp -r $(FOCAL_LOSS_ROOT)/source/* $(MXNET_ROOT)/src/operator/contrib/

    3.3 Compile MXNet

    cd ${MXNET_ROOT}
    make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1

    3.4 Install the MXNet Python binding by

    cd python
    sudo python setup.py install

Test

  1. run test function to make sure everything is ok by

cd  $(FOCAL_LOSS_ROOT)
python softmaxfocaltest.py


上一篇:MXSeq2Seq

下一篇:dspnet

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...