Skip to content

Commit

Permalink
torch hub integration, wavfile input, and train from scratch.
Browse files Browse the repository at this point in the history
Signed-off-by: Harri Taylor <[email protected]>
  • Loading branch information
Harri Taylor committed Feb 24, 2020
1 parent 9331251 commit de6d377
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions torchvggish/vggish.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
from torch import hub
import numpy as np
from . import vggish_input
# import vggish_input


VGGISH_WEIGHTS = "https://github.com/harritaylor/torchvggish/" \
"releases/download/v0.1/vggish-10086976.pth"
PCA_PARAMS = "https://github.com/harritaylor/torchvggish/" \
"releases/download/v0.1/vggish_pca_params-970ea276.pth"


class VGG(nn.Module):
Expand Down Expand Up @@ -142,8 +135,3 @@ def _preprocess(self, x, fs):

def _postprocess(self, x):
return self.pproc.postprocess(x)


# if __name__ == "__main__":
# model = VGGish()
# model.forward("/some/path/to/test/wavfile")

0 comments on commit de6d377

Please sign in to comment.