Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forest IR Synthesis #157

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions pyha_analyzer/aug_viewer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/ubuntu/miniconda3/envs/asid/lib/python3.8/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
" from .autonotebook import tqdm as notebook_tqdm\n"
]
}
],
"source": [
"# Import statements\n",
"import os\n",
Expand Down Expand Up @@ -81,7 +90,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.16"
"version": "3.8.18"
}
},
"nbformat": 4,
Expand Down
6 changes: 4 additions & 2 deletions pyha_analyzer/aug_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from pyha_analyzer import config
from pyha_analyzer.utils import get_annotation
from pyha_analyzer.augmentations import (BackgroundNoise, LowpassFilter, Mixup,
HighpassFilter, RandomEQ, SyntheticNoise)
HighpassFilter, RandomEQ, SyntheticNoise,
AddReverb)
from pyha_analyzer.dataset import PyhaDFDataset, get_datasets

SYNTH_COLORS = ["white","pink","brown","violet","blue"]
Expand Down Expand Up @@ -69,7 +70,8 @@ def get_augs(dataset: PyhaDFDataset, cfg) -> Tuple[List[Callable],List[str]]:
LowpassFilter(cfg) : "Lowpass Filter",
HighpassFilter(cfg) : "Highpass Filter",
RandomEQ(cfg) : "Random EQ",
BackgroundNoise(cfg) : "Background Noise"})
BackgroundNoise(cfg) : "Background Noise",
AddReverb(cfg): "Add Reverb"})

#Mixup
mixup = Mixup(df = dataset.samples,
Expand Down
Loading