ekosman / AnomalyDetectionCVPR2018-Pytorch

Pytorch version of - https://github.com/WaqasSultani/AnomalyDetectionCVPR2018
172 stars 52 forks source link

Mat1 and Mat2 shapes cannot be multiplied. #230

Closed sania96 closed 2 months ago

sania96 commented 2 months ago

Hi, Very Impressive work you have done, i wanted to mention that i am using pre computed resnet features and now trying to run the anomaly detection model training code but i am getting this error: RuntimeError: mat1 and mat2 shapes cannot be multiplied (1920x2048 and 4096x512)

Can you please help me why am i getting this error?

Regards,

ekosman commented 2 months ago

Hi, can you give me the command you are trying to run? And which resnet variant?

I have an assumption that you specify the wrong input_dim for the script. I will create a patch for setting this automatically now. If that's the case, you could pull main and try again

sania96 commented 2 months ago

Hey, Resolved The Error, Thanks..