issues
search
amazon-science
/
patchcore-inspection
Apache License 2.0
719
stars
146
forks
source link
(Resolved)VallueError: Found input variables with inconsistent numbers of samples [xxx,yyy]
#47
Closed
TheWangYang
closed
1 year ago
TheWangYang
commented
1 year 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
1 year ago
thank you!!
TheWangYang
commented
1 year ago
thank you!!
It doesn't matter. Easy.
I finally solved the problem and the analysis is as follows: