Skip to main content

A Python package for computer vision experiments and research.

Project description

LogoTitle

mmit is a python library to build any encoder matched with any decoder for any Computer Vision model.

License badge PyTorch - Version Python - Version

For a quick overview of mmit, check out the documentation.

Let's take a look at what we have here!

Main Features

mmit is engineered with the objective of streamlining the construction of Computer Vision models. It offers a consistent interface for all encoders and decoders, thus enabling effortless integration of any desired combination.

Here are just a few of the things that mmit does well:

  • Any encoder works with any decoder at any input size
  • Unified interface for all decoders
  • Support for all pretrained encoders from timm
  • Pretrained encoder+decoders modules 🚧
  • PEP8 compliant (unified code style)
  • Tests, high code coverage and type hints
  • Clean code

Installation

To install mmit:

pip install mmit

Quick Start

Let's look at a super simple example of how to use mmit:

import torch
import mmit

encoder = mmit.create_encoder('resnet18')
decoder = mmit.create_decoder('unetplusplus') # automatically matches encoder output shape!

x = torch.randn(2, 3, 256, 256)
features = encoder(x)
out = decoder(*features)

To Do List

In the future, we plan to add support for:

  • timm encoders
  • some of timm transformers encoders with feature extraction
  • torchvision / torchub models
  • more decoders
  • lightning script to train models
  • multiple heads
  • popular loss function
  • popular datasets
  • popular metrics

Awesome Sources

This project is inspired by, and would not be possible without, the following amazing libraries

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

mmit-0.5.2.tar.gz (58.9 kB view details)

Uploaded Source

Built Distribution

mmit-0.5.2-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file mmit-0.5.2.tar.gz.

File metadata

  • Download URL: mmit-0.5.2.tar.gz
  • Upload date:
  • Size: 58.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for mmit-0.5.2.tar.gz
Algorithm Hash digest
SHA256 672f7c3965e84c4a194f9a4fd61c5a72d7efbfb473daf2164db1b4c401c0ad48
MD5 d5548750688fc106ca0fa3fd230afe6e
BLAKE2b-256 9586ec63ec5cd2d5473193e9a3edebfcfbea94b6f31722d5840b00e8910ac11e

See more details on using hashes here.

File details

Details for the file mmit-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: mmit-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for mmit-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 30c526306b9a10b2f266fdc0a768c36eab003402bd345f73cbcd1f522387fa0c
MD5 0f7f5c9a7971ff51e8c186f4ae989ff4
BLAKE2b-256 9715ffb26a0237ebdf64438d41eed7b79d9f65f251c3d7cbd6bad26d9753814b

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