Skip to content

Commit 8fb2e79

Browse files
committed
More cleanup
1 parent be890f9 commit 8fb2e79

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

clmr/datasets/audio.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import os
2-
import subprocess
3-
import torchaudio
42
from glob import glob
53
from torch import Tensor
6-
from typing import Any, Tuple, Optional
4+
from typing import Tuple
75

86

97
from clmr.datasets import Dataset
@@ -13,14 +11,9 @@ class AUDIO(Dataset):
1311
"""Create a Dataset for any folder of audio files.
1412
Args:
1513
root (str): Path to the directory where the dataset is found or downloaded.
16-
folder_in_archive (str, optional): The top-level directory of the dataset.
17-
subset (str, optional): Which subset of the dataset to use.
18-
One of ``"training"``, ``"validation"``, ``"testing"`` or ``None``.
19-
If ``None``, the entire dataset is used. (default: ``None``).
14+
src_ext_audio (str): The extension of the audio files to analyze.
2015
"""
2116

22-
_ext_audio = ".wav"
23-
2417
def __init__(
2518
self,
2619
root: str,

config/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dataset_dir: "./data"
88
seed: 42
99
batch_size: 48
1010
# max_epochs: 200
11-
dataset: "magnatagatune" # ["magnatagatune", "msd", "gtzan", "librispeech", "audio"]
11+
dataset: "magnatagatune" # ["magnatagatune", "msd", "gtzan", "audio"]
1212
supervised: 0 # train with supervised baseline
1313

1414
# SimCLR model options

linear_evaluation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from pytorch_lightning import Trainer
77
from pytorch_lightning.callbacks import EarlyStopping
88
from pytorch_lightning.loggers import TensorBoardLogger
9-
from tqdm import tqdm
109

1110
from clmr.datasets import get_dataset
1211
from clmr.data import ContrastiveDataset

0 commit comments

Comments
 (0)