ekosman / AnomalyDetectionCVPR2018-Pytorch

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

The problem of enumerate #13

Closed bingma03 closed 4 years ago

bingma03 commented 4 years ago

Hi, I got a problem when I extracted features. It happened in the mathod of enumerate(train_iter) in the file of feature_extractor.py. Do you know how to sove this problem? Thank you! image

bingma03 commented 4 years ago

Hi, I got a problem when I extracted features. It happened in the mathod of enumerate(train_iter) in the file of feature_extractor.py. Do you know how to sove this problem? Thank you! image

This problem has been solved. I removed the set class before returning vid_list in the fuction of get_video_list.

G-Morgen commented 4 years ago

Hi, I have the same problem. Can you tell me how you solved it?@bingma03

bingma03 commented 4 years ago

Hi, I have the same problem. Can you tell me how you solved it?@bingma03

I removed the set method. image

G-Morgen commented 4 years ago

Hi, I have the same problem. Can you tell me how you solved it?@bingma03

I removed the set method. ![image](https://user-images.githubusercontent.com/31856259/72143583-ecaa8100-33d1-11ea-9f46-6dd7ecba722a.png.

Hi, Thank you very much, Can we have more communication?Could you add my QQ or Wechat? QQ:121080986

ekosman commented 4 years ago

Removing the set seems to be the right way to fix this. I originally added it because I used a bad annotations file which contained duplicates, thus set removed it.

Btw, you could consider a pull request so other ppl could enjoy it.. :)