caer

jasmcausMIT活跃维护

用 Python 写的高性能视觉库,把图像预处理、增强和 GPU 加速封装成简洁 API,省去重复样板代码,让研究者专注模型实验。

High-performance Vision library in Python. Scale your research, not boilerplate.

v2.0.3发布于 2021-10-06 07:29 UTC823star +1 / 7 天110fork同步于 2026-11-10 11:55 UTC

怎么上手

由 README 提炼,执行前请确认
pip install --upgrade caer
硬件要求按 README 说明

README 称其为 GPU 加速库,但未说明具体显存要求、支持的 GPU 厂商或型号;也未说明能否纯 CPU 运行。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

轻量级 GPU 加速的 Python 视觉库,帮你省去样板代码,快速做 CV 研究原型

用 Python 写的高性能视觉库,把图像预处理、增强和 GPU 加速封装成简洁 API,省去重复样板代码,让研究者专注模型实验。

核心能力

  • 提供 caer.color 做色彩空间转换
  • 内置 caer.data 标准测试图像与示例数据
  • caer.transforms 提供图像变换与数据增强
  • caer.video 提供视频处理工具
  • resize 支持保持宽高比缩放

容易踩的坑

仅支持 Python 3.6 及以上,不支持 Python 2;README 未说明其他依赖或额外模型下载要求,详细安装(含源码编译)需参考 INSTALL.md

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v2.0.3
  1. v2.0.3最新正式版2021-10-06 · 2021-10-06 07:29 UTC

    这个版本没有写更新说明。

  2. v2.0.02021-10-03 · 2021-10-03 06:48 UTC
    查看更新说明

    Release v2!

  3. v1.9.92021-10-01 · 2021-10-01 17:37 UTC

    这个版本没有写更新说明。

  4. v1.9.72021-01-23 · 2021-01-23 10:10 UTC
    查看更新说明

    Performance Improvements; enforce usage of caer.Tensor and powerful transformation functions in caer.transforms (faster than torchvision)

  5. v1.9.42020-12-09 · 2020-12-09 06:54 UTC
    查看更新说明

    Performance Improvements and Bug fixes + New features!

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Python PyPI Twitter Downloads ReadTheDocs license

    Caer - Modern Computer Vision on the Fly

    Caer is a lightweight, high-performance Vision library for high-performance AI research. We wrote this framework to simplify your approach towards Computer Vision by abstracting away unnecessary boilerplate code giving you the flexibility to quickly prototype deep learning models and research ideas. The end result is a library quite different in its design, that’s easy to understand, plays well with others, and is a lot of fun to use.

    Our elegant, type-checked API and design philosophy makes Caer ideal for students, researchers, hobbyists and even experts in the fields of Deep Learning and Computer Vision.

    Overview

    Caer is a Python library that consists of the following components:

    ComponentDescription
    caerA lightweight GPU-accelerated Computer Vision library for high-performance AI research
    caer.colorColorspace operations
    caer.dataStandard high-quality test images and example data
    caer.pathOS-specific path manipulations
    caer.preprocessingImage preprocessing utilities.
    caer.transformsPowerful image transformations and augmentations
    caer.videoVideo processing utilities

    Usually, Caer is used either as:

    • a replacement for OpenCV to use the power of GPUs.
    • a Computer Vision research platform that provides maximum flexibility and speed.

    Installation

    See the Caer Installation guide for detailed installation instructions (including building from source).

    Currently, caer supports releases of Python 3.6 onwards; Python 2 is not supported (nor recommended). To install the current release:

    $ pip install --upgrade caer
    

    Getting Started

    Minimal Example

    import caer
    
    # Load a standard 640x427 test image that ships out-of-the-box with caer
    sunrise = caer.data.sunrise(rgb=True)
    
    # Resize the image to 400x400 while MAINTAINING aspect ratio
    resized = caer.resize(sunrise, target_size=(400,400), preserve_aspect_ratio=True)
    

    For more examples, see the Caer demos or Read the documentation

    Resources

    Contributing

    We appreciate all contributions, feedback and issues. If you plan to contribute new features, utility functions, or extensions to the core, please go through our Contribution Guidelines.

    To contribute, start working through the caer codebase, read the Documentation, navigate to the Issues tab and start looking through interesting issues.

    Current contributors can be viewed either from the Contributors file or by using the caer.__contributors__ command.

    Asking for help

    If you have any questions, please:

    1. Read the docs.
    2. Look it up in our Github Discussions (or add a new question).
    3. Search through the issues.

    License

    Caer is open-source and released under the MIT License.

    BibTeX

    If you want to cite the framework feel free to use this (but only if you loved it 😊):

    @article{jasmcaus,
      title={Caer},
      author={Jason},
      journal={GitHub. Note: https://github.com/jasmcaus/caer},
      volume={2},
      year={2020-2025}
    }