Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Vondrick authored Oct 7, 2016
1 parent 287af1b commit 5231a92
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ SoundNet
Usage
-----

net = torch.load('soundnet8_final.t7')
sound = audio.load('demo.mp3')

sound = sound:view(1, 1, -1, 1):cuda()
net:forward(sound)

feat = net.modules[10].output:float()
net = torch.load('soundnet8_final.t7')
sound = audio.load('demo.mp3')
sound = sound:view(1, 1, -1, 1):cuda()
net:forward(sound)
feat = net.modules[10].output:float()

0 comments on commit 5231a92

Please sign in to comment.