Releases: magcil/deepaudio-x
Releases · magcil/deepaudio-x
v0.4.1
Inference Pipeline
- `predict()` is now a pure low-level method — eval mode and gradient context are the caller's responsibility
- `inference_on_waveform()` automatically manages eval mode and restores training state via the new `@eval_mode` decorator
- Added `ValueError` for non-1D input in `inference_on_waveform()`
- New `utils/decorators.py` with `eval_mode` decorator using `try/finally` for guaranteed state restoration
Evaluator
- Fixed O(n²) `np.concatenate` — results now accumulate in lists and are concatenated once after the loop
- Replaced `torch.no_grad()` context manager with `@torch.inference_mode()` decorator
Trainer
- Decomposed `train()` into `train_step()`, `val_step()`, and `epoch_step()` — users can now build custom training loops around `epoch_step()`
Module Structure
- Renamed `dtos/` → `schemas/` and split into `items.py`, `predictions.py`, and `types.py`
- `BackboneName` moved to `schemas/types.py` to eliminate circular imports
- Fixed backbone registry typo: `monilenet_` → `mobilenet_`
- Suppressed `FutureWarning` from deprecated `weight_norm` in BEATs backbone
Public API
- Removed internal names (`AudioClassifierConstructor`, `BackboneConstructor`, `BACKBONES`, `POOLING`) from `all`
- `AudioClassifier` and `Backbone` are now the only exported model constructors
CI
- Added `publish.yml` workflow for automated PyPI publishing on GitHub release"
v0.4.0
- Add Mobilenets variants from https://github.com/fschmid56/EfficientAT/
- bump version to 0.4.0
- Update and integrate mobilenets on testing
v0.3.7
Update readthedocs:
- Finalize api reference
- fixed docstrings and generated instructional example code blocks
- add citation & contributing
v0.3.6
- Optimize inference by leveraging bitcount and not masking
v0.3.5
- Fix inference to calculate counts
- Now result is fixed and the label with most occurrences and the higher mean posterior is returned
v0.3.4
- Fix bug on inference by processing segments based on sample points and not on time duration
- Add one test on inference
- Version bump to 0.3.4
v0.3.3
Update README:
- add hyperlink on uv installation
- cache buster on python versions and pypi version
v0.3.2
- Add badges
- Refine installation guidelines on README
- Version bump to 0.3.2
v0.3.1
- Modify README by adding Inference API
v0.3.0
- Add inference on base classifier constructor
- add testing when pushing on main
- remove toc from README
- progress with readthedocs