Image loading: Use 'float' instead of an undefined variable.

This commit is contained in:
Brandon Amos 2016-08-22 19:39:36 -04:00
parent 60d31c09b4
commit 13701ec424
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ while true do
-- as a CSV.
local imgPath = io.read("*line")
if imgPath and imgPath:len() ~= 0 then
img[1] = image.load(imgPath, 3, byte)
img[1] = image.load(imgPath, 3, 'float')
img[1] = image.scale(img[1], opt.imgDim, opt.imgDim)
local rep
if opt.cuda then