Skip to main content

CFM - model zoo

Project description

CFM-Task-Models

Popular CV models modified for various approaches of Compression for Machines (aka Coding for Machines)

Installation

The easiest way to install CFM-Task-Models is through PyPI, to do this simply use pip install cfm-task-models However, CFM-Task-Models has requirements that currently cannot be handled by pip, thus before using CFM-Task-Models for the first time please run miminstaller.py in your virutal environment. If using poetry consider: poetry run python -m cfm_task_models.split_utils.miminstaller

Requirements

CFM-Task-Models currently relies on several tools from OpenMMLab, which require custom installation using the openmim installer. Openmim is a tool provided by OpenMMLab which installs their libraries based on the user's pytorch and cuda versions.

See pyproject.toml for standard requirements and miminstaller.py for OpenMMLAB requirements

Usage

To test Swin_Transformer, run the following command from the root directory:

python models/Swin-Transformer/models/swin_transformer_v2.py

Semantic Segmentation

Dataset

To downald the ADE20K dataset, run the following command from the root directory:

python cfm_task_models/dataset_download.py --dataset-name ade20k_2016 --save-dir data/ade --unzip --delete

Model Zoo

The model configs can be found in configs/segmentation.

ADE20K dataset

Model Backbone config checkpoint mIoU
UperNet Swin-T UPerNet download model 44.41
Mask2Former Swin-T Mask2Former download model 48.66
KNet + UperNet Swin-T KNet download model 45.84

Download from mim:

mim download mmsegmentation --config swin-tiny-patch4-window7-in1k-pre_upernet_8xb2-160k_ade20k-512x512 --dest ./configs/segmentation

mim download mmsegmentation --config mask2former_swin-t_8xb2-160k_ade20k-512x512 --dest ./configs/segmentation

mim download mmsegmentation --config knet-s3_swin-t_upernet_8xb2-adamw-80k_ade20k-512x512 --dest ./configs/segmentation

Evaluation

python

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cfm_task_models-0.0.15.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

cfm_task_models-0.0.15-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file cfm_task_models-0.0.15.tar.gz.

File metadata

  • Download URL: cfm_task_models-0.0.15.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.6 Linux/5.15.0-105-generic

File hashes

Hashes for cfm_task_models-0.0.15.tar.gz
Algorithm Hash digest
SHA256 5596b26214e1e19be90f7bfd7c73d2cdf6d5b8a9cb74d0ceade919985eb9368a
MD5 be27c84c659dea4d3f7bddcb71e17a05
BLAKE2b-256 a114c169c6ee0618896bcfe7fe480787742135c7f235b5702d403c4a4dd9b21c

See more details on using hashes here.

File details

Details for the file cfm_task_models-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: cfm_task_models-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.6 Linux/5.15.0-105-generic

File hashes

Hashes for cfm_task_models-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 28ebc50de5c27ef95fd8154b1bb7b6528b644697591a65c16fc24a621b8b0ca7
MD5 2fddb11119ae6599ae80327ba01c1012
BLAKE2b-256 d69fc6406c4aecbe9b451e3ad62e5eeb0de3d14909f448d0ee815d7b15923cc8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page