Skip to main content

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

Metadata

Release files for mmit 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mmit 0.6.0
File Size Uploaded Provenance Actions
mmit-0.6.0.tar.gz 59.2 kB Without provenance Details for mmit-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mmit 0.6.0
File Interpreter ABI Platform Actions
mmit-0.6.0-py3-none-any.whl Python 3 none any Details for mmit-0.6.0-py3-none-any.whl

Total release size: 99.6 kB

Release files / mmit-0.6.0.tar.gz

Download URL mmit-0.6.0.tar.gz
Size 59.2 kB
Tags Source
SHA-256 checksum
How to use checksums
756772b02813f43207a7e024efd84178f46e9f347f568744996f504d02331a0f
BLAKE2b-256 checksum
How to use checksums
5699035299e75c15b3ae1464ab49427b327973c2cc3e08d4abcaca84a8cedf94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / mmit-0.6.0-py3-none-any.whl

Download URL mmit-0.6.0-py3-none-any.whl
Size 40.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61eaf3cd5d2bd257b6c13898d97d341689bfa4ddc5fdc4561bb50ee01b7dc5d6
BLAKE2b-256 checksum
How to use checksums
c485fbd73dfcf55a50938f9881ca61a123a551affa3d02a871a61444bf618735
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for mmit 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page