You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code/models/heatmap-segmentation.lua
+7-6
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,13 @@ local nn = require 'nn'
6
6
7
7
localfunctioncreateModel(opt)
8
8
9
+
ifopt.loadModel~='' then
10
+
localmodel=torch.load(opt.loadModel)
11
+
model:cuda()
12
+
print(model)
13
+
returnmodel
14
+
end
15
+
9
16
ifopt.loadPoseEstimationModel~='' then
10
17
localnOutput=51--This is slightly more than our final number of output channels. The actually used number of channels is 13 (wall corner) + 4 (opening corner) + 4 (icon corner) + 10 (opening/icon/empty segmentation) + 11 (wall/room segmentation)
11
18
@@ -33,12 +40,6 @@ local function createModel(opt)
33
40
returnmodel
34
41
end
35
42
36
-
ifopt.loadModel~='' then
37
-
localmodel=torch.load(opt.loadModel)
38
-
model:cuda()
39
-
print(model)
40
-
returnmodel
41
-
end
42
43
assert(false, 'Please specify either opt.loadPoseEstimationModel or opt.loadModel')
0 commit comments