Project Icon

pipeless

开源框架,简化计算机视觉应用开发和部署

Pipeless是一个开源框架,旨在简化计算机视觉应用的开发和部署过程。该框架自动化处理代码并行化、多媒体管道和内存管理等复杂任务,加速实时应用开发。Pipeless采用模块化设计,支持动态组合处理阶段和多种推理运行时,可部署于边缘设备和云端。通过简化开发流程,Pipeless有效提升了计算机视觉项目的开发效率。

Pipeless

Easily create, deploy and run computer vision applications.



Loading video...



Check out our hosted agents solution

Pipeless is an open-source framework that takes care of everything you need to develop and deploy computer vision applications in just minutes. That includes code parallelization, multimedia pipelines, memory management, model inference, multi-stream management, and more. Pipeless allows you to ship applications that work in real-time in minutes instead of weeks/months.

Pipeless is inspired by modern serverless technologies. You provide some functions and Pipeless takes care of executing them for new video frames and everything involved.

With Pipeless you create self-contained boxes that we call "stages". Each stage is a micro pipeline that performs a specific task. Then, you can combine stages dynamically per stream, allowing you to process each stream with a different pipeline without changing your code and without restarting the program. To create a stage you simply provide a pre-process function, a model and a post-process function.

You can load industry-standard models, such as YOLO, or custom models in one of the supported inference runtimes just by providing a URL. Pipeless ships some of the most popular inference runtimes, such as the ONNX Runtime, allowing you to run inference with high performance on CPU or GPU out-of-the-box.

You can deploy your Pipeless and your applications to edge and IoT devices or to the cloud. There are several tools for the deployment, including container images.

The following is a non-exhaustive set of relevant features that Pipeless includes:

  • Multi-stream support: process several streams at the same time.
  • Dynamic stream configuration: add, edit, and remove streams on the fly via a CLI or REST API (more adapters to come).
  • Multi-language support: you can Write your hooks in several languages, including Python.
  • Dynamic processing steps: you can add any number of steps to your stream processing, and even modify those steps dynamically on a per-stream basis.
  • Built-in restart policies: Forget about dealing with connection errors, cameras that fail, etc. You can easily specify restart policies per stream that handle those situations automatially.
  • Highly parallelized: do not worry about multi-threading and/or multi-processing, Pipeless takes care of that for you.
  • Several inference runtimes supported: Provide a model and select one of the supported inference runtimes to run it out-of-the-box in CPU or GPUs. We support CUDA, TensorRT, OpenVINO, CoreML, and more to come.
  • Well-defined project structure and highly reusable code: Pipeless uses the file system structure to load processing stages and hooks, helping you organize the code in highly reusable boxes. Each stage is a directory, each hook is defined on its own file.

Get started now!

Join our community and contribute to making the lives of computer vision developers easier!

Requirements ☝️

  • Python. Pre-built binaries are linked to Python 3.10 in Linux amd64, 3.8 in Linux arm64, and 3.12 in macOS. If you have a different Python version, provide the --build flag to the install script to build from source so Pipeless links to your installed Python version (or update your version and use a pre-built binary, which is simpler).
  • Gstreamer 1.20.3. Verify with gst-launch-1.0 --gst-version. Installation instructions here

Installation 🛠️

curl https://raw.githubusercontent.com/pipeless-ai/pipeless/main/install.sh | bash

Find more information and installation options here.

Using docker

Instead of installing locally, you can alternatively use docker and save the time of installing dependencies:

docker run miguelaeh/pipeless --help

To use it with CUDA:

docker run miguelaeh/pipeless:latest-cuda --help

To use with TensorRT use:

docker run miguelaeh/pipeless:latest-tensorrt --help

Find the whole container documentation here.

Getting Started 🚀

Init a project:

pipeless init my_project --template scaffold
cd my_project

Start Pipeless:

pipeless start --stages-dir .

Provide a stream:

pipeless add stream --input-uri "https://pipeless-public.s3.eu-west-3.amazonaws.com/cats.mp4" --output-uri "screen" --frame-path "my-stage"

The code generated is an empty template that scafold a stage so it will do nothing. Please go to the examples to complete that stage.

You can also use the interactive shell to create the project:

Loading video...

Check the complete getting started guide or plunge into the complete documentation.

Examples 🌟

You can find some examples under the examples directory. Just copy those folders inside your project and play with them.

Find here the whole list of examples and step by step guides.

Benchmark 📈

We deployed Pipeless to several different devices so you can have a general idea of its performance. Find the results at the benchmark section of the docs.

Notable Changes

Notable changes indicate important changes between versions. Please check the whole list of notable changes.

Contributing 🤝

Thanks for your interest in contributing! Contributions are welcome and encouraged. While we're working on creating detailed contributing guidelines, here are a few general steps to get started:

  1. Fork this repository.
  2. Create a new branch: git checkout -b feature-branch.
  3. Make your changes and commit them: git commit -m 'Add new feature'.
  4. Push your changes to your fork: git push origin feature-branch.
  5. Open a GitHub pull request describing your changes.

We appreciate your help in making this project better!

Please note that for major changes or new features, it's a good idea to discuss them in an issue first so we can coordinate efforts.

License 📄

This project is licensed under the Apache License 2.0.

Apache License 2.0 Summary

The Apache License 2.0 is a permissive open-source license that allows you to use, modify, and distribute this software for personal or commercial purposes. It comes with certain obligations, including providing attribution to the original authors and including the original license text in your distributions.

For the full license text, please refer to the Apache License 2.0.

项目侧边栏1项目侧边栏2
推荐项目
Project Cover

豆包MarsCode

豆包 MarsCode 是一款革命性的编程助手,通过AI技术提供代码补全、单测生成、代码解释和智能问答等功能,支持100+编程语言,与主流编辑器无缝集成,显著提升开发效率和代码质量。

Project Cover

AI写歌

Suno AI是一个革命性的AI音乐创作平台,能在短短30秒内帮助用户创作出一首完整的歌曲。无论是寻找创作灵感还是需要快速制作音乐,Suno AI都是音乐爱好者和专业人士的理想选择。

Project Cover

有言AI

有言平台提供一站式AIGC视频创作解决方案,通过智能技术简化视频制作流程。无论是企业宣传还是个人分享,有言都能帮助用户快速、轻松地制作出专业级别的视频内容。

Project Cover

Kimi

Kimi AI助手提供多语言对话支持,能够阅读和理解用户上传的文件内容,解析网页信息,并结合搜索结果为用户提供详尽的答案。无论是日常咨询还是专业问题,Kimi都能以友好、专业的方式提供帮助。

Project Cover

阿里绘蛙

绘蛙是阿里巴巴集团推出的革命性AI电商营销平台。利用尖端人工智能技术,为商家提供一键生成商品图和营销文案的服务,显著提升内容创作效率和营销效果。适用于淘宝、天猫等电商平台,让商品第一时间被种草。

Project Cover

吐司

探索Tensor.Art平台的独特AI模型,免费访问各种图像生成与AI训练工具,从Stable Diffusion等基础模型开始,轻松实现创新图像生成。体验前沿的AI技术,推动个人和企业的创新发展。

Project Cover

SubCat字幕猫

SubCat字幕猫APP是一款创新的视频播放器,它将改变您观看视频的方式!SubCat结合了先进的人工智能技术,为您提供即时视频字幕翻译,无论是本地视频还是网络流媒体,让您轻松享受各种语言的内容。

Project Cover

美间AI

美间AI创意设计平台,利用前沿AI技术,为设计师和营销人员提供一站式设计解决方案。从智能海报到3D效果图,再到文案生成,美间让创意设计更简单、更高效。

Project Cover

AIWritePaper论文写作

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

投诉举报邮箱: service@vectorlightyear.com
@2024 懂AI·鲁ICP备2024100362号-6·鲁公网安备37021002001498号