Skip to content

A flexible Python front-end inference SDK

License

Notifications You must be signed in to change notification settings

Play2Boy/flexinfer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlexInfer

A flexible Python front-end inference SDK.

Features

  • Flexible

    FlexInfer has a Python front-end, which makes it easy to build a computer vision product prototype.

  • Efficient

    Most of time consuming part of Flexinfer is powered by C++ or CUDA, so FlexInfer is also efficient. If you are really hungry for efficiency and don't mind the trouble of C++, you can refer to CheetahInfer.

License

This project is released under Apache 2.0 license.

Installation

Requirements

  • Linux
  • Python 3.6 or higher
  • TensorRT 7.0.0.11 or higher
  • PyTorch 1.2.0 or higher
  • CUDA 9.0 or higher
  • volksdep

We have tested the following versions of OS and softwares:

  • OS: Ubuntu 16.04.6 LTS
  • Python 3.6.9
  • TensorRT 7.0.0.11
  • PyTorch 1.2.0
  • CUDA: 10.2

Install flexinfer

  1. Install volksdep following the official instructions

  2. If your platform is x86 or x64, you can create a conda virtual environment and activate it.

conda create -n flexinfer python=3.6.9 -y
conda activate flexinfer
  1. Clone the flexinfer repository.
git clone https://github.com/Media-Smart/flexinfer
cd flexinfer
  1. Install requirements.
pip install -r requirements.txt

Usage

Here is an example of deploying a classifier, you can run the following statement to classify an image.

python examples/classifier.py image_file

All sample files are in examples directory.

Contact

About

A flexible Python front-end inference SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%