Code Monkey home page Code Monkey logo

fast_segmentation's Introduction

TODOs:

  • Make inference more generic (command line/launch file configs)
  • Change the way the input is passed to the gpu in InferenceEngine.cu
  • Add time benchmarks

Dependencies

  1. Install nvidia drivers/cuda
  2. Install Tensorflow pip install tensorflow or pip install tensorflow-gpu
  3. Install TensorRT sudo aptitude install libnvinfer5 libnvinfer-dev

Conversions

(outputNodeName)+ means one or more names

checkpoint to .pb

cd conversions/scripts/
python3 convert_to_pb.py path/to/model.chk.meta dir/of/checkpoint/ path/to/output.pb (outputNodeName)+

.pb to uff

cd conversions/scripts/
python3 convert_pb_to_uff.py path/to/model.pb path/to/output.uff (outputNodeName)+

.uff to .plan

You need to do this conversion on the device that is going to use the model
cd conversions
mkdir build && cd build
cmake ..
make -j4
./uff_to_plan models/mymodel.uff models/mymodel.plan inputs/X 256 256 1 up23/BiasAdd 1 500000 float

Inference

cd inference
# fix paths and file names on src/run_plan.cu
mkdir build && cd build
cmake ..
make -j4
cd src # inside build
./run_plan

Example Model

We provide a simple model trained on Kitti Road detection that can be used to test the entire pipeline here. All inputs were resized to (368x1200) for training.

Input Input

Output Output

This project uses scripts from NVIDIA trt_image_classification

fast_segmentation's People

Contributors

gnardari avatar black-phoenix avatar

Stargazers

许皓 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.