Mmit
A CV library in python, design and experiment with models using any encoder with any decoder.
Install / Use
/learn @abcamiletto/MmitREADME

mmit is a python library to build any encoder matched with any decoder for any Computer Vision model.
</div> <!--End Introduction-->For a quick overview of mmit, check out the documentation.
Let's take a look at what we have here!
Main Features <!--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 <!--Installation-->
To install mmit:
pip install mmit
<!--End Installation-->
Quick Start <!--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)
<!--End Quick Start-->
To Do List
In the future, we plan to add support for:
- [x] timm encoders
- [ ] some of timm transformers encoders with feature extraction
- [ ] torchvision / torchub models
- [ ] more decoders
- [ ] lightning script to train models
- [x] multiple heads
- [ ] popular loss function
- [ ] popular datasets
- [ ] popular metrics
Awesome Sources <!-- omit in toc -->
This project is inspired by, and would not be possible without, the following amazing libraries
Related Skills
claude-opus-4-5-migration
111.1kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
352.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
51.2k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.8kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
