Closed huitailangdeerzi closed 3 years ago
Or rather return len(self.features_list_normal) + len(self.features_list_anomaly )
@huitailangdeerzi @RachanaAgarwal In my implementation, each epoch represents one iteration as described in the original paper consisting of two buckets - one for normal videos and the other for anomalous videos. Thus, the length of the iterator is set to be twice the bucket size, which is 30 in the original paper.
class FeaturesLoader(data.Dataset): def init(self, features_path, annotation_path, bucket_size=30):
您好我想问一下,def len(self):这一块为什么设置bucket_size,为什么不def len(self): return len( self.features_list_normal)*2