@@ -35,7 +35,7 @@ for _, mode in pairs({'Wall Junction', 'Door', 'Object', 'Room'}) do
35
35
end
36
36
37
37
38
- local filenames = {}
38
+ local resultFilenames = {}
39
39
40
40
-- local finalExamples = {1, 2, 4, 5, 6}
41
41
-- for _, i in pairs(finalExamples) do
@@ -63,22 +63,15 @@ for index, filenames in pairs(imageInfo) do
63
63
end
64
64
65
65
local representationImage = fp_ut .drawRepresentationImage (floorplan , representationPrediction )
66
- -- image.save(resultPath .. predictionFilename, representationImage)
67
66
local img = torch .cat (floorplan , representationImage , 3 )
68
67
local floorplanPredictionFilename = ' representation_prediction_' .. index .. ' .png'
69
- local predictionFilename = resultPath .. floorplanPredictionFilename
70
- image .save (predictionFilename , img )
71
- table.insert (filenames , predictionFilename )
72
-
73
- if index == 10 then
74
- break
75
- end
68
+ image .save (resultPath .. ' /' .. floorplanPredictionFilename , img )
69
+ table.insert (resultFilenames , floorplanPredictionFilename )
76
70
end
77
71
78
72
print (results )
79
73
80
-
81
- local resultFile = io.open (resultPath .. ' index.html' , ' w' )
74
+ local resultFile = io.open (resultPath .. ' /index.html' , ' w' )
82
75
resultFile :write (" <!DOCTYPE html><html><head></head><body>" )
83
76
resultFile :write (" <h3>Statistics:</h3>" )
84
77
resultFile :write (' <table border="1">' )
89
82
resultFile :write (" </table>" )
90
83
91
84
resultFile :write (" <h3>Results:</h3>" )
92
- for i , filename in pairs (filenames ) do
85
+ for i , filename in pairs (resultFilenames ) do
93
86
resultFile :write (" <p>Index " .. i .. " </p>" )
94
87
resultFile :write (' <img src="' .. filename .. ' " alt="' .. filename .. ' " width="100%">' )
95
88
end
0 commit comments