diff --git a/openface/openface_server.lua b/openface/openface_server.lua index 9e2315f..96ecbe3 100644 --- a/openface/openface_server.lua +++ b/openface/openface_server.lua @@ -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