cvlab-yonsei / MNAD

An official implementation of "Learning Memory-guided Normality for Anomaly Detection" (CVPR 2020) in PyTorch.
333 stars 82 forks source link

dataset path error #17

Closed Tiacy closed 3 years ago

Tiacy commented 3 years ago

ValueError: num_samples should be a positive integer value, but got num_samples=0

In this code,the path is right,while the videos list can't be achieved by 'glob.glob(os.path.join(self.dir, '*'))' in model/utils.py.

hyunjp commented 3 years ago

I think the error is from different setting of the dataset path. Note that, you have to define the '--dataset_path' not to contain the '--dataset_type' such as ped2 and avenue (e.g., './dataset' (O), './dataset/ped' (X)). Please check out the dataset path.

duynguyentdmu commented 2 years ago

many thanks