Coder Social home page Coder Social logo

pedestrian_detection_attention's Introduction

  • Modified from original git repo. ATTENTION: pytorch 1.0 branch, and prepare the project with pytorch-1.0 README.md

Preparation

  • Prepare data and HydraPlus pretrained model First of all, clone the code
git clone [email protected]:TianmingQiu/pedestrian_detection_attention.git

Then, create a folder:

cd pedestrian_detection_attention && mkdir data

Download dataset and pre-trained model:

cd data

Download bdd_data and pretrained_model here. The directroy looks like:

data
├── bdd_data
└── pretrained_model

Compilation

pip install -r requirements.txt
cd lib
python setup.py build develop

If you have the issue with "cannot import .mask", you need to prepare COCO API:

cd data
git clone https://github.com/pdollar/coco.git 
cd coco/PythonAPI
make

Train AF3

Check train.sh and run sh train.sh

Other information

  • test your training e.g.:
python trainval_net.py --dataset pascal_voc --net vgg16 --bs 24 --nw 8 --lr 0.001 --lr_decay_step 1000 --cuda --mGPUs
Custom dataset adaptation:
HydraPlus detector:

Train the MNet branch of HydraPlus net:

BATCH_SIZE=128
WORKER_NUMBER=4
LEARNING_RATE=0.01
DECAY_STEP=10

GPU_ID=0,1,2,3,4,5,6,7

CUDA_VISIBLE_DEVICES=$GPU_ID python trainval_net.py \
                   --dataset bdd --net hp --hpstage MNet \
                   --bs $BATCH_SIZE --nw $WORKER_NUMBER \
                   --lr $LEARNING_RATE --lr_decay_step $DECAY_STEP \
                   --cuda  --mGPUs

pedestrian_detection_attention's People

Contributors

tianmingqiu avatar

Stargazers

Jiawen Pan avatar

Watchers

James Cloos avatar

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.