Fix the data type image.load
Thanks Daniil Belkov! `byte` was defaulting to `"float"`
This commit is contained in:
parent
041c90f0c1
commit
1267e1abb3
|
@ -327,7 +327,7 @@ end
|
|||
|
||||
-- by default, just load the image and return it
|
||||
function dataset:defaultSampleHook(imgpath)
|
||||
local out = image.load(imgpath, 3, byte)
|
||||
local out = image.load(imgpath, 3, 'float')
|
||||
out = image.scale(out, self.sampleSize[3], self.sampleSize[2])
|
||||
return out
|
||||
end
|
||||
|
|
|
@ -272,7 +272,7 @@ end
|
|||
|
||||
-- by default, just load the image and return it
|
||||
function dataset:defaultSampleHook(imgpath)
|
||||
local out = image.load(imgpath, 3, byte)
|
||||
local out = image.load(imgpath, 3, 'float')
|
||||
out = image.scale(out, self.sampleSize[3], self.sampleSize[2])
|
||||
return out
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue