Commit e3aeab52 authored by Davis King's avatar Davis King

Changed the scan_image_pyramid serialization version number since the

recent changes make its feature representation incompatible with
previous versions.
parent eca9345f
...@@ -234,7 +234,7 @@ namespace dlib ...@@ -234,7 +234,7 @@ namespace dlib
std::ostream& out std::ostream& out
) )
{ {
int version = 2; int version = 3;
serialize(version, out); serialize(version, out);
serialize(item.feats_config, out); serialize(item.feats_config, out);
serialize(item.feats, out); serialize(item.feats, out);
...@@ -255,7 +255,7 @@ namespace dlib ...@@ -255,7 +255,7 @@ namespace dlib
{ {
int version = 0; int version = 0;
deserialize(version, in); deserialize(version, in);
if (version != 2) if (version != 3)
throw serialization_error("Unsupported version found when deserializing a scan_image_pyramid object."); throw serialization_error("Unsupported version found when deserializing a scan_image_pyramid object.");
deserialize(item.feats_config, in); deserialize(item.feats_config, in);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment