Merge branch 'dev' of https://github.com/shahules786/enhancer into dev-hawk

This commit is contained in:
shahules786 2022-10-10 21:04:01 +05:30
commit 32579b7a39
2 changed files with 40 additions and 5 deletions

View File

@ -1,6 +1,40 @@
# enhancer # mayavoz
Enhancer is a Pytorch-based opensource toolkit for speech enhancement. It is designed to save time for audio researchers. Is provides easy to use pretrained audio enhancement models and facilitates highly customisable custom model training . Enhancer provides mayavoz is a Pytorch-based opensource toolkit for speech enhancement. It is designed to save time for audio researchers. Is provides easy to use pretrained audio enhancement models and facilitates highly customisable custom model training .
* Various pretrained models nicely integrated with huggingface that users can select and use without any hastle. | **[Quick Start]()** | **[Installation]()** | **[Tutorials]()** | **[Available Recipes]()**
* Ability to train and validation your own custom speech enhancement models with just under 10 lines of code! ## Key features :key:
* A command line tool that facilitates training of highly customisable speech enhacement models from the terminal itself!
* Various pretrained models nicely integrated with huggingface :hugs: that users can select and use without any hastle.
* :package: Ability to train and validation your own custom speech enhancement models with just under 10 lines of code!
* :magic_wand: A command line tool that facilitates training of highly customisable speech enhacement models from the terminal itself!
* :zap: Supports multi-gpu training integrated with Pytorch Lightning.
## Quick Start :fire:
``` python
from mayavoz import Mayamodel
model = Mayamodel.from_pretrained("mayavoz/waveunet")
model("noisy_audio.wav")
```
## Installation
Only Python 3.8+ is officially supported (though it might work with Python 3.7)
- With Pypi
```
pip install mayavoz
```
- With conda
```
conda env create -f environment.yml
conda activate mayavoz
```
- From source code
```
git clone url
cd mayavoz
pip install -e .
```

View File

@ -110,6 +110,7 @@ class Model(pl.LightningModule):
def setup(self, stage: Optional[str] = None): def setup(self, stage: Optional[str] = None):
if stage == "fit": if stage == "fit":
torch.cuda.empty_cache()
self.dataset.setup(stage) self.dataset.setup(stage)
self.dataset.model = self self.dataset.model = self