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

Fixed typos in various files #22

Open
wants to merge 9 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Train AudioSep from scratch:
python train.py --workspace workspace/AudioSep --config_yaml config/audiosep_base.yaml --resume_checkpoint_path checkpoint/ ''
```

Finetune AudioSep from pretrained checkpoint:
Finetune AudioSep from pre-trained checkpoint:
```python
python train.py --workspace workspace/AudioSep --config_yaml config/audiosep_base.yaml --resume_checkpoint_path path_to_checkpoint
```
Expand Down
4 changes: 2 additions & 2 deletions data/datamodules.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def setup(self, stage: Optional[str] = None) -> NoReturn:
# called on every process in DDP

# SegmentSampler is used for selecting segments for training.
# On multiple devices, each SegmentSampler samples a part of mini-batch
# On multiple devices, each SegmentSampler samples a part of a mini-batch
# data.
self.train_dataset = self._train_dataset

Expand Down Expand Up @@ -119,4 +119,4 @@ def collate_fn(list_data_dict):
'audio_text': at_data_dict
}

return data_dict
return data_dict
4 changes: 2 additions & 2 deletions data/waveform_mixers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ def __call__(self, waveforms):
# randomly normalize background noise
noise = dynamic_loudnorm(audio=noise, reference=segment, **self.loudness_param)

# create audio mixyure
# create an audio mixture
mixture = segment + noise

# declipping if need be
# Declipping if need be
max_value = torch.max(torch.abs(mixture))
if max_value > 1:
segment *= 0.9 / max_value
Expand Down
4 changes: 2 additions & 2 deletions evaluation/evaluate_audiocaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __call__(
self,
pl_model: pl.LightningModule
) -> Dict:
r"""Evalute."""
r"""Evaluate."""

print(f'Evaluation on AudioCaps with [{self.query}] queries.')

Expand Down Expand Up @@ -107,4 +107,4 @@ def __call__(
mean_sisdr = np.mean(sisdrs_list)
mean_sdri = np.mean(sdris_list)

return mean_sisdr, mean_sdri
return mean_sisdr, mean_sdri
2 changes: 1 addition & 1 deletion evaluation/evaluate_audioset.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __call__(
self,
pl_model: pl.LightningModule
) -> Dict:
r"""Evalute."""
r"""Evaluate."""

pl_model.eval()

Expand Down
4 changes: 2 additions & 2 deletions evaluation/evaluate_clotho.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __call__(
self,
pl_model: pl.LightningModule
) -> Dict:
r"""Evalute."""
r"""Evaluate."""

print(f'Evaluation on Clotho Evaluation with [caption] queries.')

Expand Down Expand Up @@ -99,4 +99,4 @@ def __call__(
mean_sisdr = np.mean(sisdrs_list)
mean_sdri = np.mean(sdris_list)

return mean_sisdr, mean_sdri
return mean_sisdr, mean_sdri
2 changes: 1 addition & 1 deletion evaluation/evaluate_esc50.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __call__(
self,
pl_model: pl.LightningModule
) -> Dict:
r"""Evalute."""
r"""Evaluate."""

print(f'Evaluation on ESC-50 with [text label] queries.')

Expand Down
4 changes: 2 additions & 2 deletions evaluation/evaluate_music.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __call__(
self,
pl_model: pl.LightningModule
) -> Dict:
r"""Evalute."""
r"""Evaluate."""

print(f'Evaluation on MUSIC Test with [text label] queries.')

Expand Down Expand Up @@ -115,4 +115,4 @@ def __call__(
mean_sdri = np.mean(mean_sdri_list)
mean_sisdr = np.mean(mean_sisdr_list)

return mean_sisdr, mean_sdri
return mean_sisdr, mean_sdri
4 changes: 2 additions & 2 deletions evaluation/evaluate_vggsound.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __call__(
self,
pl_model: pl.LightningModule
) -> Dict:
r"""Evalute."""
r"""Evaluate."""

print(f'Evaluation on VGGSound+ with [text label] queries.')

Expand Down Expand Up @@ -111,4 +111,4 @@ def __call__(
mean_sisdr = np.mean(sisdrs_list)
mean_sdri = np.mean(sdris_list)

return mean_sisdr, mean_sdri
return mean_sisdr, mean_sdri