ekosman / AnomalyDetectionCVPR2018-Pytorch

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

TrainingAnomalyDetector_public.py and generate_ROC.py same error occurred #212

Closed nbw999 closed 9 months ago

nbw999 commented 10 months ago

Hi, I have used C3D Precomputed Features and c3d model in the exps directory. I followed the command without modifying any other parts

Error: return F.linear(input, self.weight, self.bias) RuntimeError: mat1 and mat2 must have the same dtype

AbhinavJangra29 commented 9 months ago

hi here for seeking help! have you successfully infered the model even once? i am facing a lot of errors looking forward if you can help!

ekosman commented 9 months ago

Hi,

I just ran the script now, and experienced a different bug (wrong tensor dtypes apparently, not sure why that didn't happen before) and fixed it right away in #216 . Now it seems to work for me. Can you pull main again and try?

ekosman commented 9 months ago

Closing this as it seems to be fixed and no response from the author.