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.4.0.tar.gz
.
File metadata
- Download URL: mmit-0.4.0.tar.gz
- Upload date:
- Size: 56.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07caaf34a9af847d1c88dc90caf3ca932b91f461280f686bf58b4a5d1439e5d2 |
|
MD5 | 863e2102e81f6efa6d826bec2c0d1a7d |
|
BLAKE2b-256 | 5d8701794b867c4924e782172dd74b04d0d159675abea9e079f4ff8bd55b0702 |
File details
Details for the file mmit-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: mmit-0.4.0-py3-none-any.whl
- Upload date:
- Size: 36.2 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 | 731bfd41b3d260fd5eb9270e30120208fecf960c59c333f65915cec8580fbd5b |
|
MD5 | cecd2de55bdb7d27efc57d391f7dc01d |
|
BLAKE2b-256 | 3bd7b116f5ee104c922ff8f825ed8c13ab85f9c9b0021f8bf9e5b81b7af46df4 |