ml-cvnets

apple-aiml-research活跃维护

CVNets 是苹果开源的计算机视觉训练库,基于 PyTorch,支持分类、检测、分割等任务,覆盖 ImageNet、COCO、ADE20K 等主流数据集。

CVNets: A library for training computer vision networks

暂无版本1,995star256fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
git clone [email protected]:apple/ml-cvnets.git
cd ml-cvnets
conda create -n cvnets python=3.10.8
conda activate cvnets
pip install -r requirements.txt -c constraints.txt
pip install --editable .
硬件要求按 README 说明

README 未说明

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

项目说明

由 README 自动翻译提炼

苹果开源的计算机视觉训练库,覆盖分类、检测、分割和 CLIP 等基础模型

CVNets 是苹果开源的计算机视觉训练库,基于 PyTorch,支持分类、检测、分割等任务,覆盖 ImageNet、COCO、ADE20K 等主流数据集。

核心能力

  • 支持 MobileNet、ViT、Swin 等移动端与非移动端模型
  • 覆盖分类、检测、分割和 CLIP 基础模型训练
  • 内置 RangeAugment、AutoAugment、RandAugment 数据增强
  • 支持软蒸馏与硬蒸馏两种知识蒸馏方式
  • 提供 PyTorch 模型转 CoreML 的示例流程

容易踩的坑

需要 Python 3.10+ 和 PyTorch >= v1.12.0,版本不符可能装不上;安装时要同时用 constraints.txt 约束依赖版本,漏掉可能装出冲突版本;训练和评估示例分散在 docs 和 examples 目录,需按文档自行准备数据集

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

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

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

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

    README 原文

    未翻译

    CVNets: A library for training computer vision networks

    CVNets is a computer vision toolkit that allows researchers and engineers to train standard and novel mobile- and non-mobile computer vision models for variety of tasks, including object classification, object detection, semantic segmentation, and foundation models (e.g., CLIP).

    Table of contents

    What's new?

    Installation

    We recommend to use Python 3.10+ and PyTorch (version >= v1.12.0)

    Instructions below use Conda, if you don't have Conda installed, you can check out How to Install Conda.

    # Clone the repo
    git clone [email protected]:apple/ml-cvnets.git
    cd ml-cvnets
    
    # Create a virtual env. We use Conda
    conda create -n cvnets python=3.10.8
    conda activate cvnets
    
    # install requirements and CVNets package
    pip install -r requirements.txt -c constraints.txt
    pip install --editable .
    

    Getting started

    • General instructions for working with CVNets are given here.
    • Examples for training and evaluating models are provided here and here.
    • Examples for converting a PyTorch model to CoreML are provided here.

    Supported models and Tasks

    To see a list of available models and benchmarks, please refer to Model Zoo and examples folder.

    • Soft distillation
    • Hard distillation

    Maintainers

    This code is developed by Sachin, and is now maintained by Sachin, Maxwell Horton, Mohammad Sekhavat, and Yanzi Jin.

    Previous Maintainers

    • Farzad

    Research effort at Apple using CVNets

    Below is the list of publications from Apple that uses CVNets:

    License

    For license details, see LICENSE.

    Citation

    If you find our work useful, please cite the following paper:

    @inproceedings{mehta2022mobilevit,
         title={MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer},
         author={Sachin Mehta and Mohammad Rastegari},
         booktitle={International Conference on Learning Representations},
         year={2022}
    }
    
    @inproceedings{mehta2022cvnets, 
         author = {Mehta, Sachin and Abdolhosseini, Farzad and Rastegari, Mohammad}, 
         title = {CVNets: High Performance Library for Computer Vision}, 
         year = {2022}, 
         booktitle = {Proceedings of the 30th ACM International Conference on Multimedia}, 
         series = {MM '22} 
    }