3 Star 3 Fork 2

Tommy/Gear Train Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Artistic-2.0



介绍

GearTrain 提供了灵活的推理框架, 支持视频、图片推理方式

基于 GearTrain 用户可像齿轮一样自由组合各种Pipeline,实现各种推理任务

Environment

export PYTHONPATH=$PYTHONPATH:/workspace/gear-train-py

根据需求选择不同框架, 目前已实现框架只有 ORT

onnxruntime:

pip install onnxruntime-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple

框架

Backend

Arguments

Argument Type Default Description
framework str ort Target format for the exported model, such as 'onnx', 'torchscript', 'tensorflow', or others, defining compatibility with various deployment environments.
half bool False Enables FP16 (half-precision) quantization, reducing model size and potentially speeding up inference on supported hardware.
int8 bool False Activates INT8 quantization, further compressing the model and speeding up inference with minimal accuracy loss, primarily for edge devices.
device str cpu Device for running backend

Formats

Format framework Agument device Agument Model Arguments
ONNX ort cpu,cuda model.onnx half
TensorRT engine cuda model.engine half,int8
RKNN rknn cpu model.rknn half

Pipeline

Pipeline 文档

  • 一个实例化的 Pipeline 也可以作为另一个 Pipelinemodel, 从而实现管道的无限延长拼接

待改进

  • 在一个 pipeline 中同时调用多个 model

  • 流水线并行方案

空文件

简介

灵活的推理框架 Gear Train 展开 收起
README
Artistic-2.0
取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/tommy0x7c00/gear-train-py.git
git@gitee.com:tommy0x7c00/gear-train-py.git
tommy0x7c00
gear-train-py
Gear Train Python
master

搜索帮助