Git Product home page Git Product logo

deploy_trtrealtimesys's Introduction

Deploy_TRTRealTimeSys

Purpose

Capture a video from the camera on a platform (etc. Jetson Xavier) and the compressed and encoded frames are transmitted to another paltform (etc. Jetson TX), where the frames are decoded and reconstructed in real time.

Environment Requirements

  1. python 3.6.9
  2. pycuda 2022.1
  3. tensorrt 7.1.3.4
  4. opencv 4.1.1
  5. grpc 1.48.2
  6. compressai 1.2.4
  7. torch 1.9.0
  8. torchvision 1.10.0
  9. numpy 1.19.5

Tips

  1. make sure the ip address works.
  2. make sure .trt files match the platform.
  3. Folders int8/flt_onnx generate .onnx models with executing ImplicitQ/flt_*.py directly.
  4. Folders Int8LIC_*2/127 build Int8 mode TensorRT engines (.trt files) from .onnx models, where 2 means /2 and folder 127 means -127; build_*_trt.py builds Float32 mode TensorRT engines from .onnx models.
  5. The input size is fixed, which is [1, 3, 256, 256].
  6. TX2 platform can not support Int8 mode of TensorRT.
  7. flt_decoder_cmp.py & flt_encoder_cmp.py: floating-point pretrained models with flt_*.onnx & flt_*_TX/XA.trt.
  8. decoder_cmp.py & encoder_cmp.py: int8 quantized models with Int8LIC_*.onnx & Int8LIC_*_TX/XA.trt.
  9. flt_decoder_cmp.py & decoder_cmp.py use D & pD, while flt_encoder_cmp.py & encoder_cmp.py use E & pD.

Steps to run

Run server first

python3 flt_decoder_cmp.py --ip 192.168.1.188:50051

Run client then on another machine

python3 flt_encoder_cmp.py --ip 192.168.1.188:50051
  • The ip addresses on two machines should keep the same.

deploy_trtrealtimesys's People

Contributors

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