it worked when i used the original .dat file, so it is because of the model file. it is really strange, as the .dat file is only a model file, however the error message is about image size.
my pc is in ubuntu 16.04 with cuda/cudnn, all things are ok during building, and i use the default johns images for training.
The input layers are different. That's what the error is telling you. They have to be the same.
I think it is the word "version" that stops some programmers from reading the rest of the error message.
I myself fell into dlib version checking for quite a while...
@sorenchiron I am still puzzling on this:)
does it mean that I need to change this:
input_rgb_image_sized<150>
into:
input_rgb_image_sized<"size of my training images">
?
You can't just change the network definition and then deserialize a model
that uses a different network. That's what the error is telling you.
@davisking thank you.
another problem, I have used vgg face for metric learning, it finished in few minutes, I am not sure if it is correct or not, as there is only these logs, no more information:
objs.size(): 8631
done training
num_right: 250
num_wrong: 50
@davisking I found a strange problem on training:
1.If I run the dnn_metric_learning_on_images_ex vgg(I used aligned vgg face dataset and cropped all images into the same size) in command line, then it will generate the above message
2.However, if I run it in visual studio(in debug mode), then it is OK
I have checked the param(only 1 parameter) and visual studio configuration, there is no difference, it is really strange.
by the way, the problem of this issue has been solved, just as you said, I need to set the network definition same with training, thank you.
But the accuracy is not as good as your model
hey @anguoyang can you please elaborate how you solved this problem? i'm trying to explore Dlib, and this would be of great help.
by the way, the problem of this issue has been solved, just as you said, I need to set the network definition same with training, thank you.
But the accuracy is not as good as your model
Hi, could you tell me how you solve this problem? Change the image size in dnn_metric_learning_on_images_ex ? If so, which size should I use? Thank you.
I find the solution in another issue. Anyway, thanks.
Most helpful comment
I think it is the word "version" that stops some programmers from reading the rest of the error message.
I myself fell into dlib version checking for quite a while...