You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The model can be trained normally during training, but an error is reported during testing. Does anyone know how to solve it?
File "F:\PycharmProjects\MNAD\Evaluate1.py", line 114, in valrec1
labels_list = np.append(labels_list,labels[0][4+label_length:videos[video_name]['length']+label_length])
IndexError: invalid index to scalar variable.
This error is also reported on Linux
The following is the structure of Shanghai data set:
The text was updated successfully, but these errors were encountered:
the label of the shanghai dataset is a list not a dict, so the code to generate the corresponding label_list is:
labels_list = np.append(labels_list, labels[4+label_length:videos[video_name]['length']+label_length])
the label of the shanghai dataset is a list not a dict, so the code to generate the corresponding label_list is: labels_list = np.append(labels_list, labels[4+label_length:videos[video_name]['length']+label_length])
The model can be trained normally during training, but an error is reported during testing. Does anyone know how to solve it?
File "F:\PycharmProjects\MNAD\Evaluate1.py", line 114, in valrec1
labels_list = np.append(labels_list,labels[0][4+label_length:videos[video_name]['length']+label_length])
IndexError: invalid index to scalar variable.
This error is also reported on Linux
The following is the structure of Shanghai data set:
The text was updated successfully, but these errors were encountered: