Giter Site home page Giter Site logo

sfd.gluoncv's Introduction

Description

This work is to reproduce S³FD, a real-time Single Shot Scale-invariant Face Detector.

Environment

Preparation

# install MobulaOP following: https://github.com/wkcn/MobulaOP
$$ git clone https://github.com/yangfly/sfd.gluoncv.git
$$ cd sfd.gluoncv

Training your own model

  1. download wider face dataset into widerface/downloads/
    $$ tree widerface/downloads
    widerface/downloads
    ├── eval_tools.zip
    ├── Submission_example.zip
    ├── wider_face_split.zip
    ├── WIDER_test.zip
    ├── WIDER_train.zip
    └── WIDER_val.zip
    
  2. Parpare data: unzip data, annotations and eval_tools
    $$ python tool/parpare.py
    $$ tree widerface -L 1
    widerface
    ├── downloads
    ├── eval_tools
    ├── wider_face_split
    ├── WIDER_train
    └── WIDER_val
    
  3. Prepare custom val dataset for quick validation (crop and resize to 640)
    $$ python tool/build_custom_val.py
    $$ tree widerface -L 1
    widerface
    ├── downloads
    ├── eval_tools
    ├── WIDER_custom
    ├── wider_face_split
    ├── WIDER_train
    └── WIDER_val
    
  4. train vgg16 based sfd with 4 gpus
    $$ python sfd/train.py
    
    more supported base models in sfd/nn/sfd.py
  5. demo
    $$ python sfd/demo.py --model models/vgg16/sfd_best.params
    
  6. eval on WIDER_val
    $$ python sfd/eval.py --model models/vgg16/sfd_best.params
    

sfd.gluoncv's People

Contributors

yangfly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sfd.gluoncv's Issues

AttributeError: module 'mobula.func' has no attribute 'compensate'

when i train the model,I get this error:

File "D:\Users\admin\Anaconda3\Lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "D:\Users\admin\Anaconda3\Lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "D:\Users\admin\Anaconda3\Lib\site-packages\mxnet\gluon\data\dataloader.py", line 184, in worker_loop
batch = batchify_fn([dataset[i] for i in samples])
File "D:\Users\admin\Anaconda3\Lib\site-packages\mxnet\gluon\data\dataloader.py", line 184, in
batch = batchify_fn([dataset[i] for i in samples])
File "D:\Users\admin\Anaconda3\Lib\site-packages\mxnet\gluon\data\dataset.py", line 128, in getitem
return self._fn(*item)
File "E:\gc\sfd.gluoncv\sfd\data\transform.py", line 91, in call
self._anchors, None, gt_bboxes, gt_ids)
File "D:\Users\admin\Anaconda3\Lib\site-packages\mxnet\gluon\block.py", line 542, in call
out = self.forward(*args)
File "E:\gc\sfd.gluoncv\sfd\nn\anchor.py", line 140, in forward
matches = self._matcher(ious)
File "D:\Users\admin\Anaconda3\Lib\site-packages\mxnet\gluon\block.py", line 542, in call
out = self.forward(*args)
File "E:\gc\sfd.gluoncv\sfd\nn\matcher.py", line 30, in forward
mobula.func.compensate(x.shape[0], gtids, ious, match,
AttributeError: module 'mobula.func' has no attribute 'compensate'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.