feiyuhuahuo / Anomaly_Prediction

Pytorch implementation of anomaly prediction.
78 stars 22 forks source link

about shanghaitech dataset #20

Closed sgq123 closed 3 years ago

sgq123 commented 3 years ago

hi,when i used shanghaitech dataset for training, there has been no response since the program started but this code works well on avenue and ped2

feiyuhuahuo commented 3 years ago

https://github.com/feiyuhuahuo/Anomaly_Prediction/blob/6295f5d99553461df6689560b66303364059dfc8/Dataset.py#L117 please check here, maybe the path or the data format is not right.

sgq123 commented 3 years ago

https://github.com/feiyuhuahuo/Anomaly_Prediction/blob/6295f5d99553461df6689560b66303364059dfc8/Dataset.py#L117

please check here, maybe the path or the data format is not right. Thanks. there is nothing wrong with the label_loader, but maybe your code about loading training dataset doesn't consider "shangghaitech", because I found training datasets :avenue and ped2 have different form with shangghaitech. I don't know if I'm right

feiyuhuahuo commented 3 years ago

Maybe there's something wrong. I did not train shanghaitech since it's a large dataset. You can try to fix this problem.