Giter VIP home page Giter VIP logo

centernet's Introduction

开发环境

  • Python 3.6

  • PyTorch v0.4.1.

  1. 创建一个虚拟环境并激活
# 创建一个虚拟环境
conda create --name CenterNet python=3.6
# 激活环境
conda activate CenterNet
  1. 安装 PyTorch
# 安装 pytorch0.4.1
conda install pytorch=0.4.1 torchvision -c pytorch
  1. 安装 COCOAPI
git clone https://github.com/cocodataset/cocoapi.git 
cd cocoapi/PythonAPI
make
python setup.py install --user
  1. git 项目
git clone https://github.com/FLyingLSJ/CenterNet.git
cd CenterNet
  1. 安装必要包
pip install -r requirements.txt
  1. 编译可形变卷积 (from DCNv2).
cd CenterNet/src/lib/models/networks/DCNv2
./make.sh
  1. [可选:如果想使用多尺度进行训练或者测试的话] 编译 NMS
cd CenterNet/src/lib/external
make
  1. 下载预训练模型(只针对目标检测)
cd CenterNet/models
sh download_model.sh
  1. 测试
python demo.py ctdet --demo ../images --load_model ../models/ctdet_coco_dla_2x.pth --debug -1

centernet's People

Contributors

xingyizhou avatar cclauss avatar flyinglsj avatar dequanwang avatar jscsmk avatar lbin avatar dannykuo25 avatar sirykd avatar gcaya avatar pjunhyuk avatar ridhwanluthra avatar chengzhengxin avatar xuannianz avatar sundrops 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.