Commit bb0f764c authored by Davis King's avatar Davis King

Fixed serialization bug

parent 4f55291b
...@@ -421,6 +421,7 @@ namespace dlib ...@@ -421,6 +421,7 @@ namespace dlib
deserialize(use_BIO_model, in); deserialize(use_BIO_model, in);
deserialize(use_high_order_features, in); deserialize(use_high_order_features, in);
deserialize(dims, in); deserialize(dims, in);
deserialize(item.labeler, in);
if (use_BIO_model != feature_extractor::use_BIO_model) if (use_BIO_model != feature_extractor::use_BIO_model)
{ {
throw serialization_error("Incompatible feature extractor found while deserializing " throw serialization_error("Incompatible feature extractor found while deserializing "
...@@ -436,8 +437,6 @@ namespace dlib ...@@ -436,8 +437,6 @@ namespace dlib
throw serialization_error("Incompatible feature extractor found while deserializing " throw serialization_error("Incompatible feature extractor found while deserializing "
"dlib::sequence_segmenter. Wrong value of total_feature_vector_size()."); "dlib::sequence_segmenter. Wrong value of total_feature_vector_size().");
} }
deserialize(item.labeler, in);
} }
private: private:
......
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