A Python package for computer vision experiments and research.
Project description
mmit is a python library to build any encoder matched with any decoder for any Computer Vision model.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mmit-0.3.0.tar.gz
.
File metadata
- Download URL: mmit-0.3.0.tar.gz
- Upload date:
- Size: 56.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 810348ab07ecbe25141ac8009eba11dc82d955c79341bad733a206a280741d2f |
|
MD5 | 6a75dc41f98998c79f19fc0912111406 |
|
BLAKE2b-256 | 8e0668bd6260e46b68c0e930237ccba4aa76818a9c24440f7f252d8d1312df6b |
File details
Details for the file mmit-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: mmit-0.3.0-py3-none-any.whl
- Upload date:
- Size: 34.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec92698932aad6909a13c0342c726ee8ede0b14205c1f41d962422e03431d7cf |
|
MD5 | ab3cabbd907aca4370894b08781ee77d |
|
BLAKE2b-256 | 5dfea0bffc4936a29a7fb55a30377a161b6565634d8208e5788519a451466e31 |