Skip to content

Commit

Permalink
parent 03845a5
Browse files Browse the repository at this point in the history
author Will <[email protected]> 1728870664 -0400
committer Will <[email protected]> 1732659637 -0500

parent 03845a5
author Will <[email protected]> 1728870664 -0400
committer Will <[email protected]> 1732659617 -0500

parent 03845a5
author Will <[email protected]> 1728870664 -0400
committer Will <[email protected]> 1732659576 -0500

parent 03845a5
author Will <[email protected]> 1728870664 -0400
committer Will <[email protected]> 1732659547 -0500

parent 03845a5
author Will <[email protected]> 1728870664 -0400
committer Will <[email protected]> 1732659503 -0500

parent 03845a5
author Will <[email protected]> 1728870664 -0400
committer Will <[email protected]> 1732659433 -0500

Major Refactor
  • Loading branch information
will-rice committed Nov 26, 2024
1 parent 03845a5 commit 931d70e
Show file tree
Hide file tree
Showing 57 changed files with 4,345 additions and 1,681 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,6 @@ logs/

# ruff
.ruff_cache/

# mac
.DS_Store
9 changes: 0 additions & 9 deletions .mypy.ini

This file was deleted.

23 changes: 6 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,18 @@ repos:
hooks:
- id: prettier
files: \.(css|less|scss|json|yaml|yml|html|md|mdx|js|jsx|ts|tsx|graphql|gql|vue|svelte|toml)$
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.3
hooks:
- id: ruff
args: ["--fix"]
- repo: local
hooks:
- id: black
name: black
language: system
entry: black
types: [python]
- id: isort
name: isort
- id: ruff
name: ruff
language: system
entry: isort
args: ["--profile", "black"]
types: [python]
entry: ruff check . --fix
pass_filenames: false
always_run: true
- id: mypy
name: mypy
language: system
entry: mypy denoisers
entry: mypy .
pass_filenames: false
always_run: true
- id: pytest
Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ Denoisers is a denoising library for audio with a focus on simplicity and ease o

[![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/wrice/denoisers)


## Usage/Examples

```sh
pip install denoisers
```

### Inference

```python
import torch
import torchaudio
Expand Down Expand Up @@ -43,3 +44,19 @@ for i in tqdm(range(0, padded.shape[-1], chunk_size)):

denoised = torch.concat(clean, 1)[:, :audio.shape[-1]]
```

### Train

```sh

train unet1d unet1d-24khz /data_root/

```

### Publish

```sh

publish model model_name /path/to/model

```
7 changes: 3 additions & 4 deletions bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

set -e

subsys=$1
command=$2
shift; shift
exec python -m "denoisers.scripts.$subsys.$command" "$@"
command=$1
shift
exec python -m "denoisers.scripts.$command" "$@"
1 change: 0 additions & 1 deletion denoisers/datamodules/__init__.py

This file was deleted.

126 changes: 0 additions & 126 deletions denoisers/datamodules/unet.py

This file was deleted.

114 changes: 0 additions & 114 deletions denoisers/datamodules/unet1d.py

This file was deleted.

Loading

0 comments on commit 931d70e

Please sign in to comment.