Giter Club home page Giter Club logo

ddrnet.tensorrt's Introduction

DDRNet

TensorRT implementation of the official DDRNet

DDRNet-23-slim outperform other light weight segmentation method,see

Compile&Run

for INT8 support:

#define USE_INT8  // comment out this if want to use INT8
//#define USE_FP16  // comment out this if want to use FP32

mkdir "calib" and put around 1k images(cityscape val/test images) into folder "calib".

FPS

Test on RTX2070

model input FPS
Pytorch-aug (3,1024,1024) 107
Pytorch-no-aug (3,1024,1024) 108
TensorRT-FP32 (3,1024,1024) 117
TensorRT-FP16 (3,1024,1024) 215
TensorRT-INT8 (3,1024,1024) 232

Pytorch-aug means augment=True.

Difference with official

we use Upsample with "nearest" other than "bilinear",which may lead to lower accuracy .

Finetune with "nearest" upsample may recover the accuracy.

Here we convert from the official model directly.

Train

  1. refer to:https://github.com/chenjun2hao/DDRNet.pytorch
  2. generate wts model with getwts.py

Train customer data

https://github.com/midasklr/DDRNet.Pytorch wirte your own dataset and finetune the model with cityscape.

ddrnet.tensorrt's People

Contributors

midasklr avatar

Watchers

 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.