Skip to content

Commit

Permalink
Fixes for travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Amos committed Jun 13, 2016
1 parent fea2fb4 commit f4567e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/openface_neural_net_training_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_dnn_training():
'-nEpochs', '10',
'-epochSize', '1',
'-cache', netWorkDir,
'-cuda', '-testing',
'-cuda', '-cudnn', '-testing',
'-nDonkeys', '-1']
p = Popen(cmd, stdout=PIPE, stderr=PIPE,
cwd=os.path.join(openfaceDir, 'training'))
Expand Down
2 changes: 0 additions & 2 deletions training/opts.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
local lfs = require 'lfs'

local M = { }

-- http://stackoverflow.com/questions/6380820/get-containing-path-of-lua-file
Expand Down
6 changes: 3 additions & 3 deletions training/train.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ function train()
end
end

for i, mod in ipairs(model:listModules()) do
for j, mod in ipairs(model:listModules()) do
if torch.typename(mod) == 'nn.SpatialBatchNormalization' then
fixNans(mod.running_mean, string.format("%d-%s-%s", i, mod, 'running_mean'))
fixNans(mod.running_var, string.format("%d-%s-%s", i, mod, 'running_var'))
fixNans(mod.running_mean, string.format("%d-%s-%s", j, mod, 'running_mean'))
fixNans(mod.running_var, string.format("%d-%s-%s", j, mod, 'running_var'))
end
end

Expand Down

0 comments on commit f4567e8

Please sign in to comment.