Skip to content

Commit

Permalink
fix(): clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
pedramabdzadeh committed Oct 6, 2021
1 parent ec16745 commit 57dbf7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions feature_layers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import torch.nn as nn
import torch
import torch.nn.functional as F
import tools.audio_utils
from scipy.fft import dct
import librosa
import numpy as np

Expand Down Expand Up @@ -46,6 +44,7 @@ def forward(self, x, device):

return batch_output.to(device)


class LinearDCT(nn.Linear):
"""Implement any DCT as a linear layer; in practice this executes around
50x faster on GPU. Unfortunately, the DCT matrix is stored, which will
Expand Down
5 changes: 0 additions & 5 deletions tools/dataset_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ def __init__(self,

self.protocols_fname = os.path.join(self.data_root, self.dset_name + '.protocol.txt')

# if is_eval:
# data_root = os.path.join('eval', data_root)
# if is_eval2021:
# data_root = os.path.join('eval2021', data_root)

self.files_dir = os.path.join(self.data_root, '{}'.format(self.dset_name))
self.transform = transform

Expand Down

0 comments on commit 57dbf7d

Please sign in to comment.