GitXplorerGitXplorer
a

ml-cvnets

public
1765 stars
225 forks
38 issues

Commits

List of commits on branch main.
Unverified
77717569ab4a852614dae01f010b32b820cb33bb

Fix test

committed a year ago
Unverified
fc62a84d98731764d9ef2ce284c4cdcab05fea4a

Fix compress_level

committed a year ago
Unverified
c668ad13d67b3e8829e810d4b6e16ad7f77fd4aa

Update README.md

mmchorton committed a year ago
Unverified
8dd03291b7c4ddf8e2539372bb8cb397386d410b

Added model_arch.png

mmchorton committed a year ago
Unverified
0c0f79822f0ae6670319b5befccb7be24adca16e

CVNets release

mmchorton committed a year ago
Unverified
6acab5e446357cc25842a90e0a109d5aeeda002f

updating docs for github page

committed 2 years ago

README

The README file for this repository.

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 git@github.com: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.

ImageNet classification models
Multimodal Classification
Object detection
Semantic segmentation
Foundation models
Automatic Data Augmentation
Distillation
  • 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

Research effort at Apple using CVNets

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

Contributing to CVNets

We welcome PRs from the community! You can find information about contributing to CVNets in our contributing document.

Please remember to follow our Code of Conduct.

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} 
}