This patch release improves project quality while fixing several bugs.
Note: holocron 0.2.1 requires PyTorch 1.9.1 and torchvision 0.10.1 or higher.
Highlights
⚡ API improvements
When performing inference, speed is key. For this reason, the Gradio demo and FastAPI boilerplate were updated to switch from Pytorch backend to ONNX. What does this change?
Much lower latency, and much lighter dependencies. The size of the docker image for the API is significantly smaller. Additionally, Poetry was used to handle the dependencies of the API template. For backend tasks, dependency modifications can be critical and poetry is a great tool to manage this. This also comes with a nice integration for the Dependabot 🤖
💅 Cleaning project hierarchy
With new PEP conventions, Python projects can now have their whole package definition in pyproject.toml
using setup.tools
. By moving most configuration files to this, the project is now much leaner.
✨ PolyLoss
A new SOTA candidate as default loss for model training was recently published, and this release comes with a clean implementation!
Get started with your new training to try it out 🏃♂️
Full changelog
New Features 🚀
- feat: Switched demo backend to ONNX by @frgfm in #208
- feat: Added implementation of PolyLoss by @frgfm in #209
Bug Fixes 🐛
- chore: Fixed jinja2 dependency by @frgfm in #210
- docs: Fixed codacy badge by @frgfm in #216
- chore: Cleaned project dependencies by @frgfm in #219
- docs: Fixed author entry in pyproject by @frgfm in #220
- chore: Improved version specifiers and fixed conda recipe by @frgfm in #221
- docs: Fixed documentation build by @frgfm in #226
- fix: Fixed Mixup for binary & one-hot targets by @frgfm in #225
- fix: Fixed BinaryClassificationTrainer by @frgfm in #227
- fix: Fixed binary classification evaluation by @frgfm in #228
Improvements
- refactor: Updated gradio version in demo by @frgfm in #212
- refactor: Updated build config and documentation theme by @frgfm in #213
- docs: Updated documentation by @frgfm in #214
- [ImgBot] Optimize images by @imgbot in #215
- ci: Updated header verifications by @frgfm in #217
- style: Fixed mypy config and updated CI by @frgfm in #218
- feat: Added poetry for API package management by @frgfm in #222
- docs: Fixed README badge and updated documentation by @frgfm in #223
- feat: Switched API backend to ONNX by @frgfm in #224
Miscellaneous
New Contributors
Full Changelog: v0.2.0...v0.2.1