amazon-science / patchcore-inspection

Apache License 2.0
719 stars 146 forks source link

Found input variables with inconsistent numbers of samples #46

Open lekshmijk opened 1 year ago

lekshmijk commented 1 year ago

Hi, I was trying to evaluate the pretrained PatchCore models for all MVTec AD subdatasets using these commands: MicrosoftTeams-image However, I am getting this error: MicrosoftTeams-image (1) Could someone please help me fix this issue?

BaochaoZhu commented 10 months ago

I also had this problem, did you solve it please?

BaochaoZhu commented 10 months ago

Hi, I was trying to evaluate the pretrained PatchCore models for all MVTec AD subdatasets using these commands: MicrosoftTeams-image However, I am getting this error: MicrosoftTeams-image (1) Could someone please help me fix this issue?

I also had this problem, did you solve it please?

BaochaoZhu commented 10 months ago

ValueError: Found input variables with inconsistent numbers of samples: [8499200, 4164608],May I ask how to solve this?

lynnchan333 commented 4 months ago

Hi, here's how I solved it: Look at the parameters in the train.sh file : --resize --imagesize and the sample_evaluation.sh file:--resize --imagesize Changing their parameters and then the code will work. I hope it helps.