vlb-deteval
vlb-deteval copied to clipboard
"Garbage found where image data was expected." when dealing with hsequences dataset.
Hi, thanks for your useful work!
But when I tried to run "de provision datasets", and when dealing with hsequences dataset, an error "Garbage found where image data was expected" occured, in dset.hsequences (line 50) imSize = utls.get_image_size(imPath);
Also, there is a bug in vlb/matlab/+utls/provision.m, line 40 and 42, "url" should be "tgt_file".
Can you help me get through the data downloading and testing process and fix bugs in it?
impnminfo.m (2019b version) does have a bug that leads to incorrect offset calculation, which, in combination with bad luck (particular byte sequence (starting at 0x47E1E) in particular image (hpatches-sequences-release/i_porta/4.ppm) looks like magic number), leads to this particular issue. This fix is enough:
@@ -156,7 +156,7 @@
function numBytesInImage = computeNumBytesInImage(info)
numChannels = 1;
-if info.Format == "ppm"
+if lower(info.Format) == "ppm"
numChannels = 3;
end