Giter Club home page Giter Club logo

wml's Introduction

#WML

Machine learning tools library.

##Dependencies

  • Linux or Mac OS
  • Python ≥ 3.6
  • scipy
  • yacs
  • OpenCV
  • pycocotools
  • gcc & g++ ≥ 4.9
  • tensorflow ≥ 1.10

##Installation

pip install -r requirements.txt
cd tfop
make clean
make -j18

##Prepare datasets

###COCO

  1. Extract COCO datasets into the following stracture:
coco
├── annotations
├── val2017
└── train2017
  1. Create tf record for object detection, instance segmentation and semantic segmentation
python datasets_tools/create_coco_tf_record.py --data_dir ~/ai/mldata/coco/
  1. Create tf record for 2D pose estimation
python datasets_tools/create_coco_tf_kp_record.py --data_dir ~/ai/mldata/coco

###Generate other datasets

The usage is similar to COCO datasets toolkit.

  • Pascal VOC: datasets_tools/create_pascal_voc_tf_record.py
  • MOT: datasets_tools/create_mot_tf_record.py
  • LabelMe: datasets_tools/create_labelme_tf_record.py

##Change the default buildin datasets location

You can set location for buildin datasets by modify the value of object_detection2/data/datasets/buildin.py:dataset_root_path

##Train

###Train RetinaNet

python object_detection_tools/train_net_on_multi_gpus.py --config-file object_detection2/default_configs/coco/RetinaNetN101.yaml --gpus 0 1 2 3 4 5 6 7

###Train Mask-RCNN

python object_detection_tools/train_net_on_multi_gpus.py --config-file object_detection2/default_configs/coco/Mask-RCNN-FPN-seph.yaml --gpus 0 1 2 3 4 5 6 7

###Train Cascade Mask-RCNN

python object_detection_tools/train_net_on_multi_gpus.py --config-file object_detection2/default_configs/coco/Cascade-Mask-RCNN-FPN-N.yaml --gpus 0 1 2 3 4 5 6 7

###Train OpenPose

python object_detection_tools/train_net_on_multi_gpus.py --config-file object_detection2/default_configs/keypoints/OpenPose-coco.yaml --gpus 0 1 2 3 4 5 6 7

###Train HRNet

python object_detection_tools/train_net_on_multi_gpus.py --config-file object_detection2/default_configs/keypoints/OpenPose-coco.yaml --gpus 0 1 2 3 4 5 6 7

###Train FairMOT

python object_detection_tools/train_net_on_multi_gpus.py --config-file object_detection2/default_configs/MOT/FairMOT.yaml --gpus 0 1 2 3 4 5 6 7

###Eval

example

python object_detection_tools/eval_net.py --config-file object_detection2/default_configs/coco/RetinaNet.yaml --gpus 0

##Predict on images

example

python object_detection_tools/predict_on_images.py --test_data_dir ../test_imgs --config-file object_detection2/default_configs/coco/RetinaNet.yaml

##MOT Track

python object_detection_tools/mot_track.py --config-file object_detection2/default_configs/MOT/FairMOT.yaml --gpus 0

License

WML itself is released under the MIT License (refer to the LICENSE file for details).

##Authors

    Wang Jie  [email protected]

    Copyright 2017 The WML Authors.  All rights reserved.

wml's People

Contributors

vghost2008 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.