-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
386 changed files
with
21,043 additions
and
11,562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
extend-ignore = W191,E203,E501,E402 | ||
show_source = True | ||
exclude = | ||
# No need to traverse our git directory | ||
.git, | ||
# There's no value in checking cache directories | ||
__pycache__, | ||
# The conf file is mostly autogenerated, ignore it | ||
docs/source/conf.py, | ||
# The old directory contains Flake8 2.0 | ||
old, | ||
# This contains our built documentation | ||
build, | ||
# This contains builds of flake8 that we don't want to check | ||
dist, | ||
# Ignore notebook checkpoints | ||
.ipynb_checkpoints | ||
per-file-ignores = | ||
# imported but unused | ||
__init__.py: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ img/ | |
*.err | ||
*.out | ||
*.torch | ||
*ign* | ||
*.ign* | ||
*_ign* | ||
.tmp* | ||
|
||
# Specific files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
include README.md | ||
graft notebooks/ | ||
graft conf/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# @package activation | ||
|
||
_target_: "torch.nn.modules.activation.LogSoftmax" | ||
dim: -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# @package activation | ||
|
||
_target_: "torch.nn.modules.activation.Sigmoid" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# @package activation | ||
|
||
_target_: "torch.nn.modules.activation.Softmax" | ||
dim: -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @package aug | ||
|
||
- type: "spectrogram" | ||
aug: | ||
_target_: "torch.nn.Identity" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# @package aug | ||
|
||
- type: "image" | ||
aug: | ||
_target_: "sslh.transforms.image.rand_augment.RandAugment" | ||
n_augm_apply: 1 | ||
magnitude_policy: "random" | ||
p: 1.0 | ||
- type: "image" | ||
aug: | ||
_target_: "sslh.transforms.image.pil.CutOutImgPIL" | ||
scales: [0.2, 0.5] | ||
fill_value: 0 | ||
p: 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# @package aug | ||
|
||
- type: "image" | ||
aug: | ||
_target_: "torchvision.transforms.transforms.RandomVerticalFlip" | ||
p: 0.5 | ||
- type: "image" | ||
aug: | ||
_target_: "torchvision.transforms.transforms.RandomVerticalFlip" | ||
p: 0.25 | ||
- type: "image" | ||
aug: | ||
_target_: "torchvision.transforms.transforms.RandomCrop" | ||
size: [32, 32] | ||
padding: 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @package aug | ||
|
||
- type: "waveform" | ||
aug: | ||
_target_: "sslh.transforms.waveform.occlusion.Occlusion" | ||
scales: [0.0, 0.25] | ||
p: 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# @package aug | ||
|
||
- type: "spectrogram" | ||
aug: | ||
_target_: "sslh.transforms.spectrogram.spec_aug.SpecAugmentation" | ||
# default hparams source : https://github.com/qiuqiangkong/audioset_tagging_cnn/blob/master/pytorch/models.py#L163 | ||
time_drop_width: 64 | ||
time_stripes_num: 2 | ||
freq_drop_width: 8 | ||
freq_stripes_num: 2 | ||
time_dim: 3 | ||
freq_dim: 2 | ||
inplace: true | ||
p: 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# @package aug | ||
|
||
- type: "waveform" | ||
aug: | ||
_target_: "sslh.transforms.waveform.occlusion.Occlusion" | ||
scales: [0.0, 0.75] | ||
p: 1.0 | ||
- type: "waveform" | ||
aug: | ||
_target_: "sslh.transforms.waveform.resample_pad_crop.ResamplePadCrop" | ||
rates: [0.25, 1.75] | ||
align: "random" | ||
p: 1.0 | ||
- type: "spectrogram" | ||
aug: | ||
_target_: "sslh.transforms.spectrogram.cutoutspec.CutOutSpec" | ||
freq_scales: [0.5, 1.0] | ||
time_scales: [0.5, 1.0] | ||
fill_value: -80.0 | ||
p: 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# @package aug | ||
|
||
- type: "spectrogram" | ||
aug: | ||
_target_: "sslh.transforms.spectrogram.spec_aug.SpecAugmentation" | ||
freq_drop_width: 8 | ||
freq_stripes_num: 2 | ||
time_drop_width: 16 | ||
time_stripes_num: 2 | ||
time_dim: 3 | ||
freq_dim: 2 | ||
inplace: true | ||
p: 1.0 | ||
|
||
- type: "waveform" | ||
aug: | ||
_target_: "sslh.transforms.waveform.resample_pad_crop.ResamplePadCrop" | ||
rates: [0.25, 1.75] | ||
align: "random" | ||
p: 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# @package aug | ||
|
||
- type: "waveform" | ||
aug: | ||
_target_: "sslh.transforms.waveform.occlusion.Occlusion" | ||
scales: [0.0, 0.25] | ||
p: 0.5 | ||
- type: "waveform" | ||
aug: | ||
_target_: "sslh.transforms.waveform.resample_pad_crop.ResamplePadCrop" | ||
rates: [0.5, 1.5] | ||
align: "random" | ||
p: 0.5 | ||
- type: "spectrogram" | ||
aug: | ||
_target_: "sslh.transforms.spectrogram.cutoutspec.CutOutSpec" | ||
freq_scales: [0.1, 0.5] | ||
time_scales: [0.1, 0.5] | ||
fill_value: -80.0 | ||
p: 0.5 |
Oops, something went wrong.