Skip to content

Commit

Permalink
Temporarily remove optimize_net for #127.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Amos committed Jun 7, 2016
1 parent 40f124c commit 21f1bcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion training/model.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if opt.cuda then
criterion:cuda()
end

optimizeNet(model, opt.imgDim)
-- optimizeNet(model, opt.imgDim)

print('=> Model')
print(model)
Expand Down
5 changes: 2 additions & 3 deletions training/train.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ require 'torchx' --for concetration the table of tensors

paths.dofile("OpenFaceOptim.lua")


local optimMethod = optim.adam
local optimState = {} -- Use for other algorithms like SGD
local optimator = OpenFaceOptim(model, optimState)
Expand Down Expand Up @@ -88,9 +87,9 @@ function train()

collectgarbage()

local nnModel = model:float():clone():clearState()
local nnModel = model:float():clearState()
if opt.cudnn then
cudnn.convert(nnModel,nn)
cudnn.convert(nnModel, nn)
end

torch.save(paths.concat(opt.save, 'model_' .. epoch .. '.t7'), nnModel)
Expand Down

0 comments on commit 21f1bcc

Please sign in to comment.