- Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmodel.lua
More file actions
Latest commit
15 lines (12 loc) · 374 Bytes
/
Copy pathmodel.lua
File metadata and controls
15 lines (12 loc) · 374 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require'torch'
require'nn'
localModel=torch.class('Model')
functionModel:__init(modelFileName)
self.model=torch.load(paths.concat('.', 'localization', 'models', modelFileName))
self.model:float()
self.model:evaluate()
end
functionModel:forward(input)
self.input=input:transpose(4,3):transpose(3,2)
returnself.model:forward(self.input)
end