issues
search
amazon-science
/
patchcore-inspection
Apache License 2.0
779
stars
154
forks
source link
(Resolved)VallueError: Found input variables with inconsistent numbers of samples [xxx,yyy]
#47
Closed
TheWangYang
closed
1 year ago
TheWangYang
commented
2 years ago
I finally solved the problem and the analysis is as follows:
When training my model input parameters are set as follows: --resize 256 --imagesize 244;
But when I loaded the pre-trained model, I set the model input parameters as follows: --resize 366 --imagesize 320;
The reason is that when training and evaluating the same model, the image input sizes are not consistent;
Finally, modify the input parameters of the evaluation model to those input during model training;
lekshmijk
commented
2 years ago
thank you!!
TheWangYang
commented
2 years ago
thank you!!
It doesn't matter. Easy.
I finally solved the problem and the analysis is as follows: