Closed ProGamerGov closed 6 years ago
Some examples of what input_images_caffe
could contain:
{
1 : FloatTensor - size: 3x405x512
2 : FloatTensor - size: 3x512x393
}
{
1 : FloatTensor - size: 3x405x512
}
I used this to create the HDF5 file:
local newFile = hdf5.open(params.output_hdf5, 'w')
So it turns out that you only need 'w'
for creating the HDF5 file.
Removing the 'w'
resolved the issue:
newFile:write('images', input_images_caffe[i])
This is where the error occurs:
The images inside
input_image_caffe
, come from:I am not sure why this issue is occurring, or how to fix it.